ui

package module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Button

func Button(args ...x.ButtonArg) x.Component

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

func ButtonClass(args ...x.ButtonArg) x.Global

ButtonClass returns a single x.Class with base + variant + size classes; useful for asChild-like usage

func ButtonDefault

func ButtonDefault() x.ButtonArg

func ButtonDefaultSize

func ButtonDefaultSize() x.ButtonArg

func ButtonDestructive

func ButtonDestructive() x.ButtonArg

func ButtonGhost

func ButtonGhost() x.ButtonArg

func ButtonIcon

func ButtonIcon() x.ButtonArg

func ButtonLg

func ButtonLg() x.ButtonArg
func ButtonLink() x.ButtonArg

func ButtonOutline

func ButtonOutline() x.ButtonArg

func ButtonOutlineBlue

func ButtonOutlineBlue() x.ButtonArg

func ButtonOutlineMuted

func ButtonOutlineMuted() x.ButtonArg

func ButtonOutlineRed

func ButtonOutlineRed() x.ButtonArg

func ButtonOutlineYellow

func ButtonOutlineYellow() x.ButtonArg

func ButtonSecondary

func ButtonSecondary() x.ButtonArg

func ButtonSm

func ButtonSm() x.ButtonArg

func Card

func Card(args ...x.DivArg) x.Node

Card creates a UI card with styling. Strictly accepts x.DivArg.

func CardContent

func CardContent(args ...x.DivArg) x.Node

CardContent creates a UI card content with styling. Strictly accepts x.DivArg.

func CardDescription

func CardDescription(args ...x.DivArg) x.Node

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

func CardFooter(args ...x.DivArg) x.Node

CardFooter creates a UI card footer with styling. Strictly accepts x.DivArg.

func CardHeader

func CardHeader(args ...x.DivArg) x.Node

CardHeader creates a UI card header with styling. Strictly accepts x.DivArg.

func CardTitle

func CardTitle(args ...x.DivArg) x.Node

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

func Checkbox(args ...x.InputArg) x.Node

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 Input

func Input(args ...x.InputArg) x.Node

Input renders a styled input. Pass standard input attributes via x.InputArg

func Label

func Label(args ...x.LabelArg) x.Node
func Modal(args ...x.DivArg) x.Node

Modal creates a modal container with shadcn/ui styling and accessibility features.

func ModalContent

func ModalContent(args ...x.DivArg) x.Node

ModalContent creates the modal content container with shadcn/ui styling

func ModalDescription

func ModalDescription(args ...x.PArg) x.Node

ModalDescription creates a modal description with shadcn/ui styling

func ModalFooter

func ModalFooter(args ...x.DivArg) x.Node

ModalFooter creates a modal footer with shadcn/ui styling

func ModalHeader

func ModalHeader(args ...x.DivArg) x.Node

ModalHeader creates a modal header with shadcn/ui styling

func ModalTitle

func ModalTitle(args ...x.H2Arg) x.Node

ModalTitle creates a modal title with shadcn/ui styling. Pass x.H2Arg (x.Text/x.T, x.Child, etc.)

func ModalTrigger

func ModalTrigger(args ...x.AArg) x.Node

ModalTrigger creates a trigger link for opening the modal. Pass x.AArg like x.Href("#id"), x.Text/x.T, classes, etc.

func Radio

func Radio(args ...interface{}) x.Component

func RadioGroup

func RadioGroup(args ...interface{}) x.Component

func Tabs

func Tabs(args ...x.DivArg) x.Component

Tabs root. Pass strict x.DivArg: classes, data-orientation, etc.

func TabsContent

func TabsContent(args ...x.DivArg) x.Component

TabsContent panel. Set data-value to match trigger.

func TabsList

func TabsList(args ...x.DivArg) x.Component

TabsList container for triggers.

func TabsTrigger

func TabsTrigger(args ...x.ButtonArg) x.Component

TabsTrigger button. Set data-value (required). Optionally set data-state="active" for initial selection.

func Textarea

func Textarea(args ...x.TextareaArg) x.Node

Types

type RadioArg

type RadioArg interface {
	// contains filtered or unexported methods
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL