Tabs.Content Props
| Prop | Type | Default |
|---|---|---|
value | string | — |
forceMount | true | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
Tabs are used to organize content into separate views, allowing users to switch between them easily.
<Tabs.Root>
<Tabs.List>
<Tabs.Tab value="value" />
</Tabs.List>
<Tabs.Content value="value" />
</Tabs.Root>
import { Tabs } from '@ivaldi/ui'<Tabs.Root>
<Tabs.List>
<Tabs.Tab value="edit">
<PencilIcon /> Edit
</Tabs.Tab>
<Tabs.Tab value="preview">
<EyeIcon /> Preview
</Tabs.Tab>
</Tabs.List>
<Tabs.Content value="edit">
<p>Edit your content here.</p>
</Tabs.Content>
<Tabs.Content value="preview">
<p>Preview your content here.</p>
</Tabs.Content>
</Tabs.Root>
| Prop | Type | Default |
|---|---|---|
value | string | — |
defaultValue | string | — |
onValueChange | function | — |
orientation | enum | — |
dir | enum | — |
activationMode | enum | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
| Prop | Type | Default |
|---|---|---|
value | string | — |
defaultValue | string | — |
onValueChange | function | — |
orientation | enum | — |
dir | enum | — |
activationMode | enum | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
| Prop | Type | Default |
|---|---|---|
value | string | — |
forceMount | true | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
| Prop | Type | Default |
|---|
| Prop | Type | Default |
|---|---|---|
loop | boolean | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
indicator | enum | "box" |
size | enum | "default" |
| Prop | Type | Default |
|---|---|---|
loop | boolean | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
| Prop | Type | Default |
|---|
| Prop | Type | Default |
|---|---|---|
value | string | — |
type | enum | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |