import React from 'react'
import { withKnobs, boolean, number, select } from '../../storybook/node_modules/@storybook/addon-knobs'
import { Text, Input, Label, Button, Box } from '..'
import StoryWrapper from '../utils/story-wrapper'
export default { title: 'DesignSystem/Atoms/Input', decorators: [withKnobs] }
const inputTypes = ['email', 'file', 'hidden', 'month', 'number', 'tel', 'text', 'time', 'url', 'week']
export const Default: React.FC = () => {
const borderless = boolean('borderless', false)
const variant = select('variant', ['sm', 'lg', 'xl', 'default'], 'default')
const type = select('type', inputTypes, 'text')
const width = number('width', 1 / 2, {
min: 0,
max: 1,
step: 0.1,
})
return (
)
}
export const Examples: React.FC = () => (
Write your name:
)