Versions in this module Expand all Collapse all v0 v0.7.1 Jul 27, 2026 Changes in this version type DescriptionItem + Input *Input + type Input struct + Default any + Name string + Options []Option + Placeholder string + Required bool + Type InputType + Validation *Validation + type InputType string + const InputCheckbox + const InputNumber + const InputSelect + const InputText v0.7.0 Jul 26, 2026 Changes in this version + func RowsOf(slice any) ([]map[string]any, error) + type AcceptSpec struct + Args map[string]ArgSource + ChatPrompt string + Label string + SuccessMessage string + Tool string + Variant ActionVariant + type Action struct + Args map[string]ArgSource + Confirm string + HrefKey string + Kind ActionKind + Label string + Prompt string + Tool string + Variant ActionVariant + type ActionKind string + const ActionLink + const ActionTool + type ActionVariant string + const VariantDanger + const VariantDefault + const VariantPrimary + type Align string + const AlignCenter + const AlignEnd + const AlignStart + type ArgSource struct + func FromRow(field string) ArgSource + func FromSelection(field string) ArgSource + func Static(v any) ArgSource + func (s ArgSource) MarshalJSON() ([]byte, error) + type BadgeVariant string + const BadgeDanger + const BadgeInfo + const BadgeNeutral + const BadgeSuccess + const BadgeWarning + type Brand struct + LogoAlt string + LogoDataURI string + LogoSVG string + Name string + URL string + func (b *Brand) Validate() error + type Calendar struct + DisableWeekends bool + Disabled []string + FromYear int + Max string + Min string + MonthDropdowns bool + Months int + Presets []DatePreset + StartOn string + ToYear int + WeekNumbers bool + WeekStart WeekStart + type CancelSpec struct + Label string + type Card struct + Brand *Brand + Empty EmptyState + InitialData map[string]any + LoadArgs map[string]any + LoadTool string + RowID string + RowsKey string + Template CardTemplate + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + func (c *Card) Descriptor() uispec.ResourceDescriptor + func (c *Card) Document() (string, error) + func (c *Card) ToolMeta() map[string]any + func (c *Card) Validate() error + type CardContent struct + Items Descriptions + Text string + TextKey string + type CardFooter struct + Actions []Action + Text string + TextKey string + type CardHeader struct + Action *Action + Badge Column + Description string + DescriptionKey string + TitleKey string + type CardList struct + Brand *Brand + DefaultSort *SortSpec + Empty EmptyState + Filterable bool + InitialData map[string]any + LoadArgs map[string]any + LoadMore bool + LoadTool string + PageSize int + PageSizes []int + RowID string + RowsKey string + Selection *SelectionConfig + Template CardTemplate + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + func (l *CardList) Descriptor() uispec.ResourceDescriptor + func (l *CardList) Document() (string, error) + func (l *CardList) ToolMeta() map[string]any + func (l *CardList) Validate() error + type CardTemplate struct + Content CardContent + Footer CardFooter + Header CardHeader + type Choice struct + Body string + Brand *Brand + Cancel *RejectSpec + Details Descriptions + InitialData map[string]any + Layout ChoiceLayout + LoadArgs map[string]any + LoadTool string + Max int + Min int + Multiple bool + Options []ChoiceOption + OptionsKey string + Prompt string + RowID string + RowsKey string + Submit ChoiceSubmit + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + func (c *Choice) Descriptor() uispec.ResourceDescriptor + func (c *Choice) Document() (string, error) + func (c *Choice) ToolMeta() map[string]any + func (c *Choice) Validate() error + type ChoiceLayout string + const ChoiceAuto + const ChoiceSplit + const ChoiceStacked + type ChoiceOption struct + Badge string + BadgeVariant BadgeVariant + Body string + Bullets []string + Data map[string]any + Default bool + Details Descriptions + Disabled bool + Label string + Summary string + Value string + type ChoiceSubmit struct + Args map[string]ArgSource + ChatPrompt string + Label string + SuccessMessage string + Tool string + ValueArg string + Variant ActionVariant + type Column struct + Actions []Action + Align Align + Badge map[string]BadgeVariant + Format string + Key string + Label string + Link *LinkSpec + Sortable *bool + Type ColumnType + Width string + func ActionsColumn(actions ...Action) Column + func Badge(key, label string, variants map[string]BadgeVariant) Column + func Date(key, label string, format ...string) Column + func Link(hrefKey, label string) Column + func Number(key, label string, format ...string) Column + func Text(key, label string) Column + type ColumnType string + const ColActions + const ColBadge + const ColDate + const ColLink + const ColNumber + const ColText + type Confirm struct + Accept AcceptSpec + Acknowledge string + Body string + Brand *Brand + Details Descriptions + Effects []Effect + EffectsKey string + InitialData map[string]any + LoadArgs map[string]any + LoadTool string + Prompt string + Reject *RejectSpec + RowID string + RowsKey string + Severity BadgeVariant + Theme *theme.Theme + Title string + TypeToConfirm string + UI *uispec.ResourceUIMeta + URI string + func (c *Confirm) Descriptor() uispec.ResourceDescriptor + func (c *Confirm) Document() (string, error) + func (c *Confirm) ToolMeta() map[string]any + func (c *Confirm) Validate() error + type DateMode string + const DateRange + const DateSingle + type DatePicker struct + Body string + Brand *Brand + Calendar *Calendar + Cancel *RejectSpec + Default string + DefaultEnd string + Details Descriptions + InitialData map[string]any + LoadArgs map[string]any + LoadTool string + Mode DateMode + Prompt string + RowID string + RowsKey string + Submit DateSubmit + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + ValueKey string + func (d *DatePicker) Descriptor() uispec.ResourceDescriptor + func (d *DatePicker) Document() (string, error) + func (d *DatePicker) ToolMeta() map[string]any + func (d *DatePicker) Validate() error + type DatePreset struct + End string + Label string + Span DateSpan + Start string + type DateSpan string + const SpanLast30Days + const SpanLast7Days + const SpanLast90Days + const SpanLastMonth + const SpanLastWeek + const SpanNext30Days + const SpanNext7Days + const SpanThisMonth + const SpanThisWeek + const SpanThisYear + const SpanToday + const SpanTomorrow + const SpanYearToDate + const SpanYesterday + type DateSubmit struct + Args map[string]ArgSource + ChatPrompt string + EndArg string + Label string + SuccessMessage string + Tool string + ValueArg string + Variant ActionVariant + type DescriptionItem struct + Align Align + Badge map[string]BadgeVariant + Format string + Key string + Label string + Link *LinkSpec + Text string + Type ColumnType + type Descriptions struct + Items []DescriptionItem + type Effect struct + Detail string + Severity BadgeVariant + Text string + Value string + type EmptyState struct + Body string + Title string + type Field struct + Calendar *Calendar + Default any + Description string + EndName string + Label string + Name string + Options []Option + Placeholder string + Required bool + Rows int + Type FieldType + Validation *Validation + type FieldType string + const FCheckbox + const FDate + const FDateRange + const FHidden + const FMultiSelect + const FNumber + const FReadonly + const FSelect + const FText + const FTextarea + const FTime + type Form struct + Brand *Brand + Cancel *CancelSpec + ErrorsKey string + Fields []Field + InitialData map[string]any + LoadArgs map[string]any + LoadTool string + PrefillKey string + Submit SubmitSpec + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + func (f *Form) Descriptor() uispec.ResourceDescriptor + func (f *Form) Document() (string, error) + func (f *Form) ToolMeta() map[string]any + func (f *Form) Validate() error + type LinkSpec struct + HrefKey string + Text string + TextKey string + type Menu struct + Brand *Brand + Intro string + Items []MenuItem + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + func (m *Menu) Descriptor() uispec.ResourceDescriptor + func (m *Menu) Document() (string, error) + func (m *Menu) ToolMeta() map[string]any + func (m *Menu) Validate() error + type MenuItem struct + Args map[string]any + Badge string + BadgeVariant BadgeVariant + Description string + IconSVG string + Label string + Prompt string + Tool string + type Option struct + Label string + Value string + func Opt(value string) Option + type RejectSpec struct + Args map[string]ArgSource + Label string + Message string + Tool string + type SelectionConfig struct + Bulk []Action + type SortSpec struct + Desc bool + Key string + type SubmitSpec struct + Label string + StaticArgs map[string]any + SuccessMessage string + Tool string + type Table struct + Brand *Brand + Columns []Column + DefaultSort *SortSpec + Empty EmptyState + Filterable bool + InitialData map[string]any + LoadArgs map[string]any + LoadTool string + PageSize int + PageSizes []int + RowID string + RowsKey string + Selection *SelectionConfig + Theme *theme.Theme + Title string + UI *uispec.ResourceUIMeta + URI string + func (t *Table) Descriptor() uispec.ResourceDescriptor + func (t *Table) Document() (string, error) + func (t *Table) ToolMeta() map[string]any + func (t *Table) Validate() error + type Validation struct + Max *float64 + MaxLen *int + Message string + Min *float64 + MinLen *int + Pattern string + Step *float64 + type WeekStart string + const WeekStartLocale + const WeekStartMonday + const WeekStartSaturday + const WeekStartSunday + type Widget interface + Descriptor func() uispec.ResourceDescriptor + Document func() (string, error) + ToolMeta func() map[string]any + Validate func() error