Files
nimbus/resources/js/components/base/tabs/AppTabs.stories.ts
Mazen Touati 35b96042f0 refactor: solidify the FE codebase and improve UI consistency (#45)
* chore: add storybook

* chore: unify FE codeabse

* chore: update eslint rules

* chore: harmonize the use of "subtle" color

* chore: remove an extra sidebar rail

* refactor: make panel items more consistent

* chore: cleanups after merging new code from base

* refactor: refine composables

* fix: add lost import

* chore: make icon style consistent

* fix: don't show empty "supported" methods

* refactor: solidify select items
2026-01-25 14:30:07 +01:00

36 lines
1.2 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/vue3';
import { AppTabs, AppTabsContent, AppTabsList, AppTabsTrigger } from './index';
const meta: Meta<typeof AppTabs> = {
title: 'Base/Tabs',
component: AppTabs,
tags: ['autodocs'],
};
export default meta;
type Story = StoryObj<typeof AppTabs>;
export const Default: Story = {
render: () => ({
components: { AppTabs, AppTabsList, AppTabsTrigger, AppTabsContent },
template: `
<AppTabs default-value="account" class="w-[400px]">
<AppTabsList>
<AppTabsTrigger value="account">Account</AppTabsTrigger>
<AppTabsTrigger value="password">Password</AppTabsTrigger>
</AppTabsList>
<AppTabsContent value="account">
<div class="p-4 border border-t-0 rounded-b-md">
Make changes to your account here.
</div>
</AppTabsContent>
<AppTabsContent value="password">
<div class="p-4 border border-t-0 rounded-b-md">
Change your password here.
</div>
</AppTabsContent>
</AppTabs>
`,
}),
};