Skip to content

Button ​

Điều khiển hành động chính. color = tông trạng thái (omit → primary Soft Periwinkle); variant = solid | outline | ghost | link | secondary.

ts
import { Button } from "@minap/ui";

Sample ​

Props / API ​

Prop / APITypeDefaultNotes
color"primary" | "success" | "warning" | "destructive" | "info""primary"Omit → primary. Không có giá trị color="default".
variant"solid" | "outline" | "ghost" | "link" | "secondary""solid"Chrome / giao diện (quy ước ngành)
size"default" | "sm" | "lg" | "icon""default"size default dùng chiều cao touch ~44px
asChildbooleanfalseRadix Slot
classNamestring—

Behavior ​

  • Focus ring khi tap + bàn phím
  • touch-manipulation
  • Forward thuộc tính button native
  • Category: forms-inputs
  • Catalog gallery: /catalog/forms-inputs

MINAP UI · SoT docs/ (VI + thuật ngữ EN)