ui

package
v0.0.0-...-d625e3b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accordion

func Accordion(props AccordionProps) html.Node

func Alert

func Alert(props AlertProps) html.Node

func Avatar

func Avatar(props AvatarProps) html.Node

func Badge

func Badge(props BadgeProps, children ...html.Node) html.Node

func Button

func Button(props ButtonProps, children ...html.Node) html.Node

func Card

func Card(props CardProps) html.Node

func EmptyState

func EmptyState(props EmptyStateProps) html.Node

func ExploreTabs

func ExploreTabs(props ExploreTabsProps) html.Node

func FormField

func FormField(props FormFieldProps) html.Node

func GitHubAuthButton

func GitHubAuthButton() html.Node

GitHubAuthButton renders a "Continue with GitHub" button

func Input

func Input(props InputProps) html.Node

func LabelFor

func LabelFor(forId string, children ...html.Node) html.Node

func OrganizationCard

func OrganizationCard(props OrganizationCardProps) html.Node

func ProfileTabs

func ProfileTabs(props ProfileTabsProps) html.Node

func RepositoryCard

func RepositoryCard(props RepositoryCardProps) html.Node

func RepositoryTabs

func RepositoryTabs(props RepositoryTabsProps) html.Node

func SVGIcon

func SVGIcon(icon Icon, class string) html.Node

func Select

func Select(props SelectProps) html.Node

func UserCard

func UserCard(props UserCardProps) html.Node

Types

type AccordionItemProps

type AccordionItemProps struct {
	Title   string
	Content html.Node
}

type AccordionProps

type AccordionProps struct {
	Items []AccordionItemProps
	Class string
}

type AlertProps

type AlertProps struct {
	Variant     AlertVariant
	Title       string
	Description string
	Icon        html.Node
	Class       string
}

type AlertVariant

type AlertVariant string
const (
	AlertDefault     AlertVariant = "alert"
	AlertDestructive AlertVariant = "alert-destructive"
)

type AvatarProps

type AvatarProps struct {
	Src      string
	Alt      string
	Fallback string
	Size     string
	Rounded  string
	Class    string
}

type BadgeProps

type BadgeProps struct {
	Variant BadgeVariant
	Class   string
	Href    string
}

type BadgeVariant

type BadgeVariant string
const (
	BadgePrimary     BadgeVariant = "badge"
	BadgeSecondary   BadgeVariant = "badge-secondary"
	BadgeOutline     BadgeVariant = "badge-outline"
	BadgeDestructive BadgeVariant = "badge-destructive"
)

type ButtonProps

type ButtonProps struct {
	Variant  ButtonVariant
	Size     ButtonSize
	Icon     bool
	Disabled bool
	Type     string
	Class    string
	OnClick  string
}

type ButtonSize

type ButtonSize string
const (
	ButtonDefault ButtonSize = ""
	ButtonSmall   ButtonSize = "sm"
	ButtonLarge   ButtonSize = "lg"
)

type ButtonVariant

type ButtonVariant string
const (
	ButtonPrimary     ButtonVariant = "btn-primary"
	ButtonSecondary   ButtonVariant = "btn-secondary"
	ButtonOutline     ButtonVariant = "btn-outline"
	ButtonGhost       ButtonVariant = "btn-ghost"
	ButtonDestructive ButtonVariant = "btn-destructive"
	ButtonLink        ButtonVariant = "btn-link"
)

type CardProps

type CardProps struct {
	Header      html.Node
	Title       string
	Description string
	Content     html.Node
	Footer      html.Node
	Class       string
}

type EmptyStateProps

type EmptyStateProps struct {
	Icon        html.Node
	Title       string
	Description string
	ActionText  string
	ActionHref  string
	ShowAction  bool
}

type ExploreTabsProps

type ExploreTabsProps struct {
	CurrentTab string
}

type FormFieldProps

type FormFieldProps struct {
	Label        string
	Id           string
	Name         string
	Type         string
	Placeholder  string
	Icon         Icon
	Required     bool
	Value        string
	Class        string
	WrapperClass string
	Error        string
}

type Icon

type Icon string
const (
	IconCheck        Icon = "check"
	IconChevronDown  Icon = "chevron-down"
	IconChevronRight Icon = "chevron-right"
	IconX            Icon = "x"
	IconAlertCircle  Icon = "alert-circle"
	IconInfo         Icon = "info"
	IconSend         Icon = "send"
	IconArrowRight   Icon = "arrow-right"
	IconLoader       Icon = "loader"
	IconDownload     Icon = "download"
	IconUpload       Icon = "upload"
	IconMoreVertical Icon = "more-vertical"
	IconTrash        Icon = "trash"
	IconPlus         Icon = "plus"
	IconRepository   Icon = "repository"
	IconBuilding     Icon = "building"
	IconUser         Icon = "user"
	IconUsers        Icon = "users"
	IconSettings     Icon = "settings"
	IconLogOut       Icon = "log-out"
	IconMail         Icon = "mail"
	IconAtSign       Icon = "at-sign"
	IconLock         Icon = "lock"
	IconGitBranch    Icon = "git-branch"
	IconLayoutGrid   Icon = "layout-grid"
	IconCode         Icon = "code"
	IconCopy         Icon = "copy"
	IconGlobe        Icon = "globe"
	IconTwitter      Icon = "twitter"
	IconDiscord      Icon = "discord"
	IconGitHub       Icon = "github"
	IconBluesky      Icon = "bluesky"
	IconStar         Icon = "star"
	IconFolder       Icon = "folder"
	IconFile         Icon = "file"
	IconShare        Icon = "share"
	IconLink         Icon = "link"
	IconCircle       Icon = "circle"
	IconEye          Icon = "eye"
	IconEdit         Icon = "edit"
	IconShield       Icon = "shield"
)

type InputProps

type InputProps struct {
	Type        string
	Name        string
	Id          string
	Placeholder string
	Value       string
	Required    bool
	Disabled    bool
	Class       string
}

type OrganizationCardProps

type OrganizationCardProps struct {
	Username    string
	DisplayName string
}

type ProfileTabsProps

type ProfileTabsProps struct {
	Username     string
	CurrentTab   string
	ShowSettings bool
	IsOrg        bool
}

type RepositoryCardProps

type RepositoryCardProps struct {
	OwnerUsername string
	Name          string
	IsPublic      bool
	StarCount     int64
}

type RepositoryTabsProps

type RepositoryTabsProps struct {
	OwnerUsername string
	RepoName      string
	CurrentTab    string
	ShowSettings  bool
	DefaultBranch string
}

type SelectOption

type SelectOption struct {
	Value    string
	Label    string
	Selected bool
	Icon     Icon
}

type SelectProps

type SelectProps struct {
	Id           string
	Name         string
	Label        string
	Options      []SelectOption
	Required     bool
	Error        string
	Class        string
	ContentClass string
}

type UserCardProps

type UserCardProps struct {
	Username    string
	DisplayName string
}

Jump to

Keyboard shortcuts

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