Updated stories

This commit is contained in:
Peter Zimon 2024-11-21 17:47:06 +01:00
parent 4e06b9a856
commit 407075ac8a
2 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,7 @@ type Story = StoryObj<typeof DropdownMenu>;
export const Default: Story = {
args: {
children: (
<DropdownMenu>
<>
<DropdownMenuTrigger>
<Button variant="outline">Open</Button>
</DropdownMenuTrigger>
@ -34,7 +34,7 @@ export const Default: Story = {
<DropdownMenuItem>Team</DropdownMenuItem>
<DropdownMenuItem>Subscription</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</>
)
}
};

View File

@ -18,8 +18,10 @@ type Story = StoryObj<typeof Tabs>;
export const Default: Story = {
args: {
className: 'w-[400px]',
defaultValue: 'account',
children: (
<Tabs className="w-[400px]" defaultValue="account">
<>
<TabsList className="grid w-full grid-cols-2">
<TabsTrigger value="account">Account</TabsTrigger>
<TabsTrigger value="password">Password</TabsTrigger>
@ -30,7 +32,7 @@ export const Default: Story = {
<TabsContent value="password">
Password
</TabsContent>
</Tabs>
</>
)
}
};