Raw
1 import { HookTable } from "@/components/HookTable"
2
3 export const Props = () => {
4 return (
5 <HookTable
6 props={[
7 {
8 value: "initial",
9 type: "boolean",
10 description: "The initial state of the toggle.",
11 default: "false",
12 },
13 ]}
14 />
15 )
16 }
17
18 export const Return = () => {
19 return (
20 <HookTable
21 props={[
22 {
23 value: "state",
24 type: {
25 type: "object",
26 name: "StateData",
27 shape:
28 "[\n state: boolean,\n open: () => void,\n close: () => void,\n toggle: () => void\n]",
29 },
30 },
31 ]}
32 isReturn
33 />
34 )
35 }