import Text from 'nes-design/es/Text'; OR import { Text } from 'nes-design';
This is Text
This is primary Text
This is success Text
This is warning Text
This is error Text
This is disabled Text
Prop / 参数 | Description / 描述 | Type / 类型 | Default / 默认值 |
---|---|---|---|
tag | text custom tag / 自定义标签 | keyof HTMLElementTagNameMap | p |
status | text status | 'primary' | 'success' | 'warning' | 'error' | 'disabled' | - |
...rest | more attrs | React.HTMLAttributes<keyof HTMLElementTagNameMap> | - |