Skip to content

Commit

Permalink
feat: add invalid props docs
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Sep 27, 2023
1 parent d60e411 commit 884cc2b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/pages/@charcoal-ui/react/Checkbox/apiData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ export const apiData: Omit<
default: 'false',
type: 'boolean',
},
invalid: {
description: '入力の不正化',
default: 'false',
type: 'boolean',
},
}
21 changes: 21 additions & 0 deletions docs/src/pages/@charcoal-ui/react/Checkbox/sections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,25 @@ export const sections: PreviewSection<CheckboxProps>[] = [
},
],
},
{
title: 'invalid',
previewMetas: [
{
children: 'invalid',
props: {
children: undefined,
invalid: true,
checked: false,
},
},
{
children: 'invalid',
props: {
children: undefined,
invalid: true,
checked: true,
},
},
],
},
]

0 comments on commit 884cc2b

Please sign in to comment.