-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Input と CurrencyInput、SearchInput の Story を見直し #5029
base: master
Are you sure you want to change the base?
Conversation
React.ComponentProps<typeof Input>, | ||
'type' | 'value' | 'defaultValue' | 'placeholder' | ||
> & { | ||
type Props = Omit<React.ComponentProps<typeof Input>, 'type' | 'value' | 'defaultValue'> & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
placeholder
は Input で定義されていたので消しました。
|
||
const VRT = {} | ||
|
||
export const VRTHover: StoryObj<typeof SearchInput> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addon-pseudo-states では再現できなさそうだったため play function を利用(focus も同じ
26aea79
to
e23bc51
Compare
commit: |
subcomponents: { CurrencyInput, SearchInput }, | ||
// eslint-disable-next-line smarthr/a11y-input-in-form-control | ||
render: (args) => <Input {...args} />, | ||
args: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReactNode を受けると props についてはデフォ値を設定するか、args の型を定義しないと Playground で [Set Object] 押下するとクラッシュしちゃいますね…。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応しました! 973bdc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
各コンポーネントでPlayground が使えない状態になっちゃってるのでご確認お願いします!
関連URL
概要
#4949 の方針に沿って Input や CurrencyInput、SearchInput の Story を見直しました。
変更内容
確認方法
Storybook や Chromatic で確認してください。