类型 InputGroupSlot

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

type InputGroupSlot struct {
	Kind       InputGroupSlotKind
	ID         ui.ID
	Icon       ui.Icon
	Text       string
	Label      string
	Hint       string
	Width      float32
	Disabled   bool
	Separated  bool
	ButtonSize InputGroupButtonSize
	// Phase is the spinner frame of an InputGroupSlotSpinner.
	Phase SpinnerPhase
}

InputGroupSlot describes one addon. Width is optional for inline slots: it is the content's own width when zero. Block slots always span the group and start their content at its left. Button IDs remain application-owned.

A button shows Icon, Text or both (icon first), sized by ButtonSize; an icon button should carry a Label, its accessible name. It is a ghost button, like shadcn's InputGroupButton default.