类型 SplitButtonOptions

API 文档由 Go 源码生成,内容为英文。

type SplitButtonOptions struct {
	PrimaryID ui.ID
	MenuID    ui.ID
	Label     string
	// MenuLabel names the menu-only action when its arrow has no visible text.
	MenuLabel string
	Hint      string
	MenuHint  string
	// Icon is normally a downward chevron. An empty icon uses Viva's standard
	// disclosure chevron.
	Icon         ui.Icon
	Variant      ButtonVariant
	Size         ButtonSize
	TriggerWidth float32
	Open         bool
	Disabled     bool
}

SplitButtonOptions describes a primary action joined to a fixed-width menu trigger. The two halves share one outline and variant while keeping separate hit identities, hover feedback, focus rings and accessibility state.