You've already forked AstralRinth
forked from didirus/AstralRinth
* add storybook * clean up stories * small fix * add stories for all components * add vintl * default to dark mode * fix teleport * add theme addon * add new modal story * delete broken stories * move all stories to central stories folder * fix paths * add pnpm run storybook * remove chromatic * add add-stories.md * fix types * fix unncessary args field * cover more addordion states * pt2 * remove old vintl * fix: missing style + ctx --------- Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
47 lines
1011 B
TypeScript
47 lines
1011 B
TypeScript
import type { Meta, StoryObj } from '@storybook/vue3-vite'
|
|
|
|
import Combobox from '../../components/base/Combobox.vue'
|
|
|
|
const meta = {
|
|
title: 'Base/Combobox',
|
|
// @ts-ignore - generic component
|
|
component: Combobox,
|
|
} satisfies Meta<typeof Combobox>
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof meta>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
options: [
|
|
{ value: '1', label: 'Option 1' },
|
|
{ value: '2', label: 'Option 2' },
|
|
{ value: '3', label: 'Option 3' },
|
|
],
|
|
triggerText: 'Select an option',
|
|
},
|
|
}
|
|
|
|
export const Searchable: Story = {
|
|
args: {
|
|
options: [
|
|
{ value: '1', label: 'Minecraft' },
|
|
{ value: '2', label: 'Fabric' },
|
|
{ value: '3', label: 'Forge' },
|
|
{ value: '4', label: 'NeoForge' },
|
|
{ value: '5', label: 'Quilt' },
|
|
],
|
|
triggerText: 'Select a loader',
|
|
searchable: true,
|
|
searchPlaceholder: 'Search loaders...',
|
|
},
|
|
}
|
|
|
|
export const Disabled: Story = {
|
|
args: {
|
|
options: [{ value: '1', label: 'Option 1' }],
|
|
triggerText: 'Disabled',
|
|
disabled: true,
|
|
},
|
|
}
|