const (
ButtonDefault ButtonVariant = iota
ButtonDestructive
ButtonOutline
ButtonSecondary
ButtonGhost
ButtonLink
// ButtonDestructiveOutline is the bordered form of a dangerous action: a danger
// colored label on an outline button, tinted with the danger color only under
// the pointer. Viva's own variant (shadcn has none), for an action that sits
// among ordinary controls such as a settings row.
ButtonDestructiveOutline
)类型 ButtonVariant
API 文档由 Go 源码生成,内容为英文。
type ButtonVariant uint8ButtonVariant selects one of the shadcn Vega button treatments. Destructive is Vega's quiet one: a danger-tinted surface with a danger label, not a solid red block.