Skip to content

Commit

Permalink
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
Browse files Browse the repository at this point in the history
…nveloping
  • Loading branch information
jiexi committed Jun 26, 2024
2 parents 487b9ca + 7e60c9a commit 323ab1e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions ui/components/ui/unit-input/unit-input.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import UnitInput from './unit-input.component';

const meta: Meta<typeof UnitInput> = {
title: 'Components/UI/UnitInput',
component: UnitInput,
argTypes: {
className: { control: 'text' },
dataTestId: { control: 'text' },
children: { control: 'text' },
actionComponent: { control: 'text' },
error: { control: 'boolean' },
onChange: { action: 'changed' },
onBlur: { action: 'blurred' },
placeholder: { control: 'text' },
suffix: { control: 'text' },
hideSuffix: { control: 'boolean' },
value: { control: 'text' },
keyPressRegex: { control: 'text' },
isDisabled: { control: 'boolean' },
isFocusOnInput: { control: 'boolean' },
},
args: {
className: '',
dataTestId: 'unit-input',
children: '',
actionComponent: '',
error: false,
placeholder: '0',
suffix: 'ETH',
hideSuffix: false,
value: '',
keyPressRegex: /^\d*(\.|,)?\d*$/u,
isDisabled: false,
isFocusOnInput: false,
},
};

export default meta;
type Story = StoryObj<typeof UnitInput>;

export const Default: Story = {};

0 comments on commit 323ab1e

Please sign in to comment.