import type { Meta, StoryObj } from '@storybook/vue3' import TitanSubheader from './TitanSubheader.vue' const meta = { component: TitanSubheader, title: 'UI/TitanSubheader', tags: ['autodocs'], argTypes: { text: { control: 'text', description: 'The heading text to display (automatically uppercased)', }, class: { control: 'text', description: 'Additional CSS classes to apply', }, }, } satisfies Meta export default meta type Story = StoryObj /** * Default subheader with standard text. * Commonly used to separate sections within forms. */ export const Default: Story = { args: { text: 'What are you envisioning for the parade elements?', }, } /** * Subheader with short text. */ export const ShortText: Story = { args: { text: 'Personal Details', }, } /** * Subheader with very long text to test wrapping behavior. */ export const LongText: Story = { args: { text: 'This is a very long subheader text that might wrap to multiple lines depending on the container width and responsive behavior', }, } /** * Subheader with custom CSS classes applied. */ export const CustomStyling: Story = { args: { text: 'Custom styled section', class: 'text-titan-purple-500', }, } /** * Multiple subheaders showing typical form section usage. */ export const InFormContext: Story = { render: () => ({ components: { TitanSubheader }, template: `
Form fields would go here...
Form fields would go here...
Form fields would go here...
`, }), } /** * Subheader within a card, showing real-world usage context. */ export const InCardContext: Story = { render: () => ({ components: { TitanSubheader }, template: `

Form Title

`, }), }