Skip to content

Commit

Permalink
storybook updates
Browse files Browse the repository at this point in the history
  • Loading branch information
staranbeer committed May 19, 2023
1 parent 0e390f8 commit 2ab1b34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/forms/TextInput/TextInput.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CurrencyCircleDollar } from '@jengaicons/react';
import { StoryFn } from '@storybook/react';
import { Meta, StoryFn } from '@storybook/react';

import {
ICON_ARG,
Expand All @@ -23,13 +23,14 @@ export default {
...ICON_ARG,
...VALIDATION_STATE_ARG,
},
};
} as Meta<typeof TextInput>;

const Template: StoryFn<JengaTextInputProps & { icon?: boolean }> = ({
icon,
...props
}) => (
<TextInput
fullWidth={false}
icon={icon ? <CurrencyCircleDollar /> : undefined}
{...props}
onChange={(query) => console.log('change', query)}
Expand Down

0 comments on commit 2ab1b34

Please sign in to comment.