Button

Use and Import

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

Case

Text Button

defaultprimarysuccesswarningerrordisabled

Button

Size

Props

Prop / 参数Description / 描述Type / 类型Default / 默认值
typebutton type / 按钮类型'primary' | 'text'primary
htmlTypeinput type / 按钮原生的类型'submit' | 'reset' | 'button'-
statusbutton status / 按钮的状态'primary' | 'success' | 'warning' | 'error' | 'disabled'-
blockfill width / 宽度占满boolean-
...restmore attrs(Example: onClick) / 更多属性(Example: onClick)React.ButtonHTMLAttributes<HTMLButtonElement> | React.HTMLAttributes<HTMLSpanElement>-