Text

Use and Import

import Text from 'nes-design/es/Text';   OR   import { Text } from 'nes-design';
Copy

Case

Text

This is Text

Status

This is primary Text

This is success Text

This is warning Text

This is error Text

This is disabled Text

Custom Tag

  • This is primary Text
  • This is primary Text
  • This is primary Text
  • This is primary Text
  • This is primary Text

Props

Prop / 参数Description / 描述Type / 类型Default / 默认值
tagtext custom tag / 自定义标签keyof HTMLElementTagNameMapp
statustext status'primary' | 'success' | 'warning' | 'error' | 'disabled'-
...restmore attrsReact.HTMLAttributes<keyof HTMLElementTagNameMap>-