docs: migrate UI docs (#13245)
* docs: create a new UI docs project (#13233) * docs: create a new UI docs project * fix installation errors * docs: migrate UI docs content to new project (#13241) * Fix content * added examples for some components * finish adding examples * lint fix * fix build errors * delete empty files * path fixes + refactor * fix build error
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { Tabs, Text } from "@medusajs/ui"
|
||||
|
||||
export default function TabsDisabled() {
|
||||
return (
|
||||
<div className="w-full px-4 flex flex-col gap-4">
|
||||
<Tabs defaultValue="general">
|
||||
<Tabs.List>
|
||||
<Tabs.Trigger value="general">General</Tabs.Trigger>
|
||||
<Tabs.Trigger value="shipping" disabled>
|
||||
Shipping (Disabled)
|
||||
</Tabs.Trigger>
|
||||
<Tabs.Trigger value="payment">Payment</Tabs.Trigger>
|
||||
</Tabs.List>
|
||||
<div className="mt-2">
|
||||
<Tabs.Content value="general">
|
||||
<Text size="small">This is the General tab.</Text>
|
||||
</Tabs.Content>
|
||||
<Tabs.Content value="shipping">
|
||||
<Text size="small">
|
||||
This is the Shipping tab (should be disabled).
|
||||
</Text>
|
||||
</Tabs.Content>
|
||||
<Tabs.Content value="payment">
|
||||
<Text size="small">This is the Payment tab.</Text>
|
||||
</Tabs.Content>
|
||||
</div>
|
||||
</Tabs>
|
||||
<Text size="xsmall" className="text-ui-fg-muted">
|
||||
Use the left and right arrow keys to navigate between the tabs. You must
|
||||
focus on a tab first.
|
||||
</Text>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user