MCPcopy Create free account
hub / github.com/Remocn/remocn / TabsExampleScene

Function TabsExampleScene

components/docs/examples/tabs-example.tsx:12–24  ·  view source on GitHub ↗
(p: TabsExampleProps = {})

Source from the content-addressed store, hash-verified

10export const tabsExampleControls = ["variant"] as const;
11
12export 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
24export const tabsExampleCode = (
25 values: Record<string, unknown> = {},
26): string => {
27 const variant = values.variant as string | undefined;

Callers

nothing calls this directly

Calls 1

useTabsTransitionFunction · 0.90

Tested by

no test coverage detected