Documentation
¶
Index ¶
- func Button(args ...x.ButtonArg) x.Component
- func ButtonClass(args ...x.ButtonArg) x.Global
- func ButtonDefault() x.ButtonArg
- func ButtonDefaultSize() x.ButtonArg
- func ButtonDestructive() x.ButtonArg
- func ButtonGhost() x.ButtonArg
- func ButtonIcon() x.ButtonArg
- func ButtonLg() x.ButtonArg
- func ButtonLink() x.ButtonArg
- func ButtonOutline() x.ButtonArg
- func ButtonOutlineBlue() x.ButtonArg
- func ButtonOutlineMuted() x.ButtonArg
- func ButtonOutlineRed() x.ButtonArg
- func ButtonOutlineYellow() x.ButtonArg
- func ButtonSecondary() x.ButtonArg
- func ButtonSm() x.ButtonArg
- func Card(args ...x.DivArg) x.Node
- func CardContent(args ...x.DivArg) x.Node
- func CardDescription(args ...x.DivArg) x.Node
- func CardFooter(args ...x.DivArg) x.Node
- func CardHeader(args ...x.DivArg) x.Node
- func CardTitle(args ...x.DivArg) x.Node
- func Checkbox(args ...x.InputArg) x.Node
- func Input(args ...x.InputArg) x.Node
- func Label(args ...x.LabelArg) x.Node
- func Modal(args ...x.DivArg) x.Node
- func ModalContent(args ...x.DivArg) x.Node
- func ModalDescription(args ...x.PArg) x.Node
- func ModalFooter(args ...x.DivArg) x.Node
- func ModalHeader(args ...x.DivArg) x.Node
- func ModalTitle(args ...x.H2Arg) x.Node
- func ModalTrigger(args ...x.AArg) x.Node
- func Radio(args ...interface{}) x.Component
- func RadioGroup(args ...interface{}) x.Component
- func Tabs(args ...x.DivArg) x.Component
- func TabsContent(args ...x.DivArg) x.Component
- func TabsList(args ...x.DivArg) x.Component
- func TabsTrigger(args ...x.ButtonArg) x.Component
- func Textarea(args ...x.TextareaArg) x.Node
- type RadioArg
- type RadioArgAdapter
- type RadioGroupArg
- type RadioGroupArgAdapter
- type RadioLabelWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Button ¶
Button creates a UI button with styling. Strictly accepts x.ButtonArg values. Adds base classes and applies default variant/size if not provided.
func ButtonClass ¶
ButtonClass returns a single x.Class with base + variant + size classes; useful for asChild-like usage
func ButtonDefault ¶
func ButtonDefaultSize ¶
func ButtonDestructive ¶
func ButtonGhost ¶
func ButtonIcon ¶
func ButtonLink ¶
func ButtonOutline ¶
func ButtonOutlineBlue ¶
func ButtonOutlineMuted ¶
func ButtonOutlineRed ¶
func ButtonOutlineYellow ¶
func ButtonSecondary ¶
func CardContent ¶
CardContent creates a UI card content with styling. Strictly accepts x.DivArg.
func CardDescription ¶
CardDescription creates a UI card description with styling. Strictly accepts x.DivArg. For text, pass x.Text/x.T; for children, pass x.Child/x.C.
func CardFooter ¶
CardFooter creates a UI card footer with styling. Strictly accepts x.DivArg.
func CardHeader ¶
CardHeader creates a UI card header with styling. Strictly accepts x.DivArg.
func CardTitle ¶
CardTitle creates a UI card title with styling. Strictly accepts x.DivArg. For text, pass x.Text/x.T; for children, pass x.Child/x.C.
func Checkbox ¶
Checkbox renders an accessible, functional checkbox using a hidden native input and a styled indicator controlled purely via CSS sibling selectors. Pass input attributes via x.InputArg (Id, Name, Required, etc.).
func ModalContent ¶
ModalContent creates the modal content container with shadcn/ui styling
func ModalDescription ¶
ModalDescription creates a modal description with shadcn/ui styling
func ModalFooter ¶
ModalFooter creates a modal footer with shadcn/ui styling
func ModalHeader ¶
ModalHeader creates a modal header with shadcn/ui styling
func ModalTitle ¶
ModalTitle creates a modal title with shadcn/ui styling. Pass x.H2Arg (x.Text/x.T, x.Child, etc.)
func ModalTrigger ¶
ModalTrigger creates a trigger link for opening the modal. Pass x.AArg like x.Href("#id"), x.Text/x.T, classes, etc.
func RadioGroup ¶
func TabsContent ¶
TabsContent panel. Set data-value to match trigger.
func TabsTrigger ¶
TabsTrigger button. Set data-value (required). Optionally set data-state="active" for initial selection.
Types ¶
type RadioArgAdapter ¶
type RadioArgAdapter struct {
// contains filtered or unexported fields
}
type RadioGroupArg ¶
type RadioGroupArg interface {
// contains filtered or unexported methods
}
type RadioGroupArgAdapter ¶
type RadioGroupArgAdapter struct {
// contains filtered or unexported fields
}
type RadioLabelWrapper ¶
type RadioLabelWrapper struct {
// contains filtered or unexported fields
}
func RadioLabel ¶
func RadioLabel(text string) RadioLabelWrapper