βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π shadcn/directory/imskyleen/animate-ui/primitives/headless/tabs β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
<TabGroup>
<TabHighlight>
<TabList>
<TabHighlightItem index={0}>
<Tab index={0}>Account</Tab>
</TabHighlightItem>
<TabHighlightItem index={1}>
<Tab index={1}>Password</Tab>
</TabHighlightItem>
</TabList>
</TabHighlight>
<TabPanels>
<TabPanel>Make changes to your account here.</TabPanel>
<TabPanel>Change your password here.</TabPanel>
</TabPanels>
</TabGroup>
<TabGroup>
<TabList>
<Tab index={0}>Account</Tab>
<Tab index={1}>Password</Tab>
</TabList>
<TabPanels>
<TabPanel>Make changes to your account here.</TabPanel>
<TabPanel>Change your password here.</TabPanel>
</TabPanels>
</TabGroup>
<ExternalLink href="https://headlessui.com/react/tabs#tab-group" text="Headless UI API Reference - TabGroup" />
<ExternalLink href="https://animate-ui.com/docs/primitives/effects/highlight#highlight" text="Animate UI API Reference - Highlight" />
<TypeTable type={{ transition: { description: 'The transition of the TabHighlight component.', type: 'Transition', required: false, default: '{ type: "spring", stiffness: 200, damping: 25 }', }, }} />
<ExternalLink href="https://animate-ui.com/docs/primitives/effects/highlight#highlightitem" text="Animate UI API Reference - HighlightItem" />
<TypeTable type={{ index: { description: 'The index of the tab.', type: 'number', required: false, }, }} />
<ExternalLink href="https://headlessui.com/react/tabs#tab-list" text="Headless UI API Reference - TabList" />
<ExternalLink href="https://headlessui.com/react/tabs#tab" text="Headless UI API Reference - Tab" />
<ExternalLink href="https://headlessui.com/react/tabs#tab-panel" text="Headless UI API Reference - TabPanel" />
<TypeTable type={{ transition: { description: 'The transition of the TabPanel component.', type: 'Transition', required: false, default: '{ duration: 0.5, ease: "easeInOut" }', }, }} />
<ExternalLink href="https://animate-ui.com/docs/primitives/effects/auto-height#autoheight" text="Animate UI API Reference - AutoHeight" />
</div><TypeTable type={{ mode: { description: 'The mode of the TabPanels component. The auto-height mode (default) dynamically measures the content to adjust the height, resulting in smoother and more natural animations that integrate seamlessly with surrounding elements. The layout mode relies on Motionβs layout transitions, offering better performance, but the resizing may appear less fluid depending on the content.', type: '"auto-height" | "layout"', required: false, default: '"auto-height"', }, transition: { description: 'The transition of the TabPanels component.', type: 'Transition', required: false, default: '{ type: "spring", stiffness: 200, damping: 25 }', }, }} />
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ