Skip to content

Commit

Permalink
Added Slider documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fgatti675 committed Oct 14, 2024
1 parent 133436e commit 2c9fb67
Show file tree
Hide file tree
Showing 5 changed files with 287 additions and 34 deletions.
4 changes: 2 additions & 2 deletions website/samples/components/slider/slider_basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from "react";
import { Slider } from "@firecms/ui";

export default function SliderBasicDemo() {
const [value, setValue] = useState([50]);
const [value, setValue] = useState([60]);

return (
<Slider
Expand All @@ -13,4 +13,4 @@ export default function SliderBasicDemo() {
step={1}
/>
);
}
}
2 changes: 1 addition & 1 deletion website/samples/components/slider/slider_range.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import { Slider } from "@firecms/ui";

export default function SliderBasicDemo() {
export default function SliderRangeDemo() {
const [value, setValue] = useState([50, 70]);

return (
Expand Down
5 changes: 3 additions & 2 deletions website/samples/components/slider/slider_small.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import React, { useState } from "react";
import { Slider } from "@firecms/ui";

export default function SliderBasicDemo() {
export default function SliderSmallDemo() {
const [value, setValue] = useState([50]);

return (
<Slider
value={value}
onValueChange={setValue}
min={0}
size={"small"}
max={100}
step={1}
/>
);
}
}
1 change: 1 addition & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ module.exports = {
"components/separator",
"components/sheet",
"components/skeleton",
"components/slider",
"components/table",
"components/tabs",
"components/text_field",
Expand Down
Loading

0 comments on commit 2c9fb67

Please sign in to comment.