wix-style-react
Version:
18 lines (15 loc) • 475 B
JavaScript
import React from 'react';
import InputWithLabel from '..';
import { StorybookComponents } from 'wix-storybook-utils/StorybookComponents';
export default () => {
const [value, setValue] = React.useState('Michael Lawrence');
return (
<StorybookComponents.Stack flexDirection="column" width="50%">
<InputWithLabel
label="Full Name"
value={value}
onChange={e => setValue(e.target.value)}
/>
</StorybookComponents.Stack>
);
};