Skip to content

Commit d8c521b

Browse files
committed
Remove orientation prop
1 parent 7f6efc1 commit d8c521b

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

docs/components/tabs.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ import { Tabs } from "@tailor-platform/app-shell";
4141

4242
### Tabs.Root Props
4343

44-
| Prop | Type | Default | Description |
45-
| --------------- | ---------------------------- | -------------- | --------------------------------------- |
46-
| `defaultValue` | `Tabs.Tab.Value` | `0` | Initial active tab value (uncontrolled) |
47-
| `value` | `Tabs.Tab.Value` | - | Controlled active tab value |
48-
| `onValueChange` | `(value: any) => void` | - | Callback when the active tab changes |
49-
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Orientation of the tabs |
50-
| `variant` | `'default' \| 'line'` | `'default'` | Visual style of the tabs |
51-
| `className` | `string` | - | Additional CSS classes for root |
52-
| `children` | `React.ReactNode` | - | Tabs sub-components |
44+
| Prop | Type | Default | Description |
45+
| --------------- | ---------------------- | ----------- | --------------------------------------- |
46+
| `defaultValue` | `Tabs.Tab.Value` | `0` | Initial active tab value (uncontrolled) |
47+
| `value` | `Tabs.Tab.Value` | - | Controlled active tab value |
48+
| `onValueChange` | `(value: any) => void` | - | Callback when the active tab changes |
49+
| `variant` | `'default' \| 'line'` | `'default'` | Visual style of the tabs |
50+
| `className` | `string` | - | Additional CSS classes for root |
51+
| `children` | `React.ReactNode` | - | Tabs sub-components |
5352

5453
### Tabs.List Props
5554

packages/core/src/components/tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const TabsVariantContext = React.createContext<TabsVariant>("default");
1212
// don't leak as breaking changes to consumers.
1313
type RootProps = Pick<
1414
React.ComponentProps<typeof BaseTabs.Root>,
15-
"defaultValue" | "value" | "onValueChange" | "orientation"
15+
"defaultValue" | "value" | "onValueChange"
1616
> & {
1717
children: React.ReactNode;
1818
className?: string;

0 commit comments

Comments
 (0)