(p: TabsExampleProps = {})
| 10 | export const tabsExampleControls = ["variant"] as const; |
| 11 | |
| 12 | export const TabsExampleScene = (p: TabsExampleProps = {}) => { |
| 13 | const style = useTabsTransition( |
| 14 | [ |
| 15 | { at: 18, state: "Account", duration: 16 }, |
| 16 | { at: 58, state: "Password", duration: 18 }, |
| 17 | { at: 94, state: "Settings", duration: 12 }, |
| 18 | ], |
| 19 | { variant: p.variant }, |
| 20 | ); |
| 21 | return <Tabs style={style} variant={p.variant ?? "pill"} />; |
| 22 | }; |
| 23 | |
| 24 | export const tabsExampleCode = ( |
| 25 | values: Record<string, unknown> = {}, |
| 26 | ): string => { |
| 27 | const variant = values.variant as string | undefined; |
nothing calls this directly
no test coverage detected