Skip to content

Commit

Permalink
fix input state argument controls
Browse files Browse the repository at this point in the history
  • Loading branch information
VTEX committed Jun 22, 2021
1 parent 984e1ad commit 3f48d62
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/store-ui/src/atoms/Input/Input.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import { Meta, Story, Preview, ArgsTable } from '@storybook/addon-docs/blocks'
import Input from '.'

<Meta title="Atoms/Input" />
<Meta
argTypes={{
state: {
options: ['default', 'success', 'error'],
control: { type: 'select' },
},
}}
title="Atoms/Input"
/>

export const colorByState = {
default: 'black',
Expand All @@ -22,7 +30,7 @@ export const colorByState = {
{({placeholder, state}) => (
<Input
style={{
borderColor: colorByState[args.state],
borderColor: colorByState[state],
borderStyle: 'solid',
}}
placeholder={placeholder}
Expand Down

0 comments on commit 3f48d62

Please sign in to comment.