-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f1c85e
commit a63c281
Showing
4 changed files
with
68 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### Tag Props | ||
|
||
name | type | default | description | required | ||
-- | -- | -- | -- | -- | ||
className | String | - | className of component | N | ||
style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N | ||
children | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
closable | Boolean | false | \- | N | ||
content | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
disabled | Boolean | false | \- | N | ||
icon | TElement | undefined | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
maxWidth | String / Number | - | \- | N | ||
shape | String | square | options: square/round/mark | N | ||
size | String | medium | options: small/medium/large/extra-large | N | ||
theme | String | default | options: default/primary/warning/danger/success | N | ||
variant | String | dark | options: dark/light/outline/light-outline | N | ||
onClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N | ||
onClose | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N | ||
|
||
|
||
### CheckTag Props | ||
|
||
name | type | default | description | required | ||
-- | -- | -- | -- | -- | ||
className | String | - | className of component | N | ||
style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N | ||
checked | Boolean | undefined | \- | N | ||
defaultChecked | Boolean | undefined | uncontrolled property | N | ||
children | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
closable | Boolean | false | \- | N | ||
content | TNode | - | Typescript:`string \| number \| string[] \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
disabled | Boolean | false | \- | N | ||
icon | TElement | - | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
shape | String | square | options: square/round/mark | N | ||
size | String | medium | options: small/medium/large。Typescript:`SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N | ||
uncheckedProps | Object | - | used to set unchecked tag props。Typescript:`TdTagProps` | N | ||
variant | String | dark | options: dark/light/outline/light-outline | N | ||
onChange | Function | | Typescript:`(checked: boolean) => void`<br/> | N | ||
onClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N | ||
onClose | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters