feat: (SW-3655) new Input and FormInput components * First version new Input and FormInput components * Handle aria-describedby with react-aria instead of manually add it * Update breaking unit and stories tests * Merge branch 'master' into feat/SW-3655-input-component * Update example form * Merge branch 'master' into feat/SW-3655-input-component * New lock file Approved-by: Linus Flood
35 lines
565 B
TypeScript
35 lines
565 B
TypeScript
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
|
|
|
import { InputLabel } from './InputLabel'
|
|
|
|
const meta: Meta<typeof InputLabel> = {
|
|
title: 'Components/InputLabel',
|
|
component: InputLabel,
|
|
argTypes: {},
|
|
}
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof InputLabel>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
children: 'Label',
|
|
required: false,
|
|
},
|
|
}
|
|
|
|
export const Discreet: Story = {
|
|
args: {
|
|
children: 'Label',
|
|
size: 'discreet',
|
|
},
|
|
}
|
|
|
|
export const Small: Story = {
|
|
args: {
|
|
children: 'Label',
|
|
size: 'small',
|
|
},
|
|
}
|