Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func Badge(props BadgeProps) templ.Component
- func Button(props ButtonProps) templ.Component
- func Card(props CardProps) templ.Component
- func Checkbox(props CheckboxProps) templ.Component
- func CurrencyAmount(props CurrencyAmountProps) templ.Component
- func Drawer(props DrawerProps) templ.Component
- func EmptyState(props EmptyStateProps) templ.Component
- func FormField(props FormFieldProps) templ.Component
- func Input(props InputProps) templ.Component
- func Modal(props ModalProps) templ.Component
- func PageHeader(props PageHeaderProps) templ.Component
- func Select(props SelectProps) templ.Component
- func Skeleton(props SkeletonProps) templ.Component
- func Spinner(props SpinnerProps) templ.Component
- func Table(props TableProps) templ.Component
- func Textarea(props TextareaProps) templ.Component
- func Toast(props ToastProps) templ.Component
- type BadgeProps
- type BadgeSize
- type BadgeVariant
- type ButtonProps
- type ButtonSize
- type ButtonType
- type ButtonVariant
- type CardPadding
- type CardProps
- type CheckboxProps
- type CurrencyAmountProps
- type DrawerProps
- type DrawerSize
- type EmptyStateProps
- type FormFieldProps
- type InputProps
- type InputType
- type ModalProps
- type ModalSize
- type PageHeaderProps
- type SelectOption
- type SelectProps
- type SkeletonProps
- type SkeletonShape
- type SpinnerProps
- type TableProps
- type TextareaProps
- type ToastProps
- type ToastVariant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Badge ¶
func Badge(props BadgeProps) templ.Component
func Button ¶
func Button(props ButtonProps) templ.Component
func Checkbox ¶
func Checkbox(props CheckboxProps) templ.Component
func CurrencyAmount ¶
func CurrencyAmount(props CurrencyAmountProps) templ.Component
func Drawer ¶
func Drawer(props DrawerProps) templ.Component
func EmptyState ¶
func EmptyState(props EmptyStateProps) templ.Component
func FormField ¶
func FormField(props FormFieldProps) templ.Component
func Input ¶
func Input(props InputProps) templ.Component
func Modal ¶
func Modal(props ModalProps) templ.Component
func PageHeader ¶
func PageHeader(props PageHeaderProps) templ.Component
func Select ¶
func Select(props SelectProps) templ.Component
func Skeleton ¶
func Skeleton(props SkeletonProps) templ.Component
func Spinner ¶
func Spinner(props SpinnerProps) templ.Component
func Table ¶
func Table(props TableProps) templ.Component
func Textarea ¶
func Textarea(props TextareaProps) templ.Component
func Toast ¶
func Toast(props ToastProps) templ.Component
Types ¶
type BadgeProps ¶
type BadgeProps struct {
Label string
Variant BadgeVariant
Size BadgeSize
Class string
}
type BadgeVariant ¶
type BadgeVariant string
const ( BadgeSuccess BadgeVariant = "success" BadgeDanger BadgeVariant = "danger" BadgeWarning BadgeVariant = "warning" BadgeInfo BadgeVariant = "info" BadgeNeutral BadgeVariant = "neutral" )
type ButtonProps ¶
type ButtonProps struct {
Label string
Variant ButtonVariant
Size ButtonSize
Type ButtonType
Loading bool
Disabled bool
Class string
Attrs templ.Attributes // used for hx-*, form, etc
}
type ButtonSize ¶
type ButtonSize string
const ( ButtonSm ButtonSize = "sm" ButtonMd ButtonSize = "md" ButtonLg ButtonSize = "lg" )
type ButtonType ¶
type ButtonType string
const ( ButtonTypeButton ButtonType = "button" ButtonTypeSubmit ButtonType = "submit" ButtonTypeReset ButtonType = "reset" )
type ButtonVariant ¶
type ButtonVariant string
const ( ButtonPrimary ButtonVariant = "primary" ButtonSecondary ButtonVariant = "secondary" ButtonGhost ButtonVariant = "ghost" ButtonDanger ButtonVariant = "danger" )
type CardPadding ¶
type CardPadding string
const ( CardPaddingNone CardPadding = "none" CardPaddingSm CardPadding = "sm" CardPaddingMd CardPadding = "md" CardPaddingLg CardPadding = "lg" )
type CheckboxProps ¶
type CurrencyAmountProps ¶
type DrawerProps ¶
type DrawerProps struct {
ID string
Title string
Size DrawerSize
Content templ.Component
}
type DrawerSize ¶
type DrawerSize string
const ( DrawerSizeSm DrawerSize = "sm" DrawerSizeMd DrawerSize = "md" DrawerSizeLg DrawerSize = "lg" DrawerSizeXl DrawerSize = "xl" )
type EmptyStateProps ¶
type FormFieldProps ¶
type InputProps ¶
type ModalProps ¶
type PageHeaderProps ¶
type SelectOption ¶
type SelectProps ¶
type SelectProps struct {
ID string
Name string
Options []SelectOption
Placeholder string
Required bool
Disabled bool
Error string
Class string
Attrs templ.Attributes
}
type SkeletonProps ¶
type SkeletonProps struct {
Shape SkeletonShape
Class string // used to set height/width
}
type SkeletonShape ¶
type SkeletonShape string
const ( SkeletonRect SkeletonShape = "rect" SkeletonCircle SkeletonShape = "circle" )
type SpinnerProps ¶
type TableProps ¶
type TextareaProps ¶
type ToastProps ¶
type ToastProps struct {
ID string
Variant ToastVariant
Title string
Message string
}
type ToastVariant ¶
type ToastVariant string
const ( ToastSuccess ToastVariant = "success" ToastError ToastVariant = "error" ToastWarning ToastVariant = "warning" ToastInfo ToastVariant = "info" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.