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

View File

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