25 lines
No EOL
432 B
TypeScript
25 lines
No EOL
432 B
TypeScript
import { Meta, StoryObj } from '@storybook/react'
|
|
import { Input } from './Input'
|
|
|
|
const meta: Meta<typeof Input> = {
|
|
component: Input,
|
|
}
|
|
|
|
type Story = StoryObj<typeof Input>;
|
|
export default meta
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
type: "text",
|
|
name: "name",
|
|
placeholder: "Name"
|
|
},
|
|
}
|
|
|
|
export const TextArea: Story = {
|
|
args: {
|
|
type: "textarea",
|
|
name: "name",
|
|
placeholder: "Ihre Nachricht"
|
|
},
|
|
} |