bootstrap

package
v0.0.0-...-4accd01 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Container      = htm.Class("container")
	ContainerFluid = htm.Class("container-fluid")
	Row            = htm.Class("row")
	Column         = htm.Class("col")
	ColumnMedium   = htm.Class("col-md")
	Column4        = htm.Class("col-4")
	Column6        = htm.Class("col-6")
	Column8        = htm.Class("col-8")
	Column4Medium  = htm.Class("col-md-4")
	Column6Medium  = htm.Class("col-md-6")
	Column8Medium  = htm.Class("col-md-8")
	Column4Large   = htm.Class("col-lg-4")
	Column6Large   = htm.Class("col-lg-6")
	Column8Large   = htm.Class("col-lg-8")
	DisplayFlex    = htm.Class("d-flex")
	Width100       = htm.Class("w-100")
)
View Source
var (
	ButtonSmall = htm.Class("btn-sm")
	ButtonLarge = htm.Class("btn-lg")
)
View Source
var ColorPickerRaw string
View Source
var ColorPickerSrc = html.JavaScript(ColorPickerRaw)
View Source
var CssSrcRaw string
View Source
var JavascriptSrcRaw string

Functions

func Alert

func Alert(color AlertColor, children ...htm.Fragment) htm.Fragment

func Button

func Button(color ButtonColor, children ...htm.Fragment) htm.Fragment

func ButtonA

func ButtonA(color ButtonColor, children ...htm.Fragment) htm.Fragment

func ButtonClass

func ButtonClass(color ButtonColor) htm.Group

func Card

func Card(body ...htm.Fragment) htm.Fragment

func CardTitle

func CardTitle(text string) htm.Fragment

func FormField

func FormField(label string, name string, opts html.FormOptions, children ...htm.Fragment) htm.Fragment

func LinkButton

func LinkButton(target string, color ButtonColor, children ...htm.Fragment) htm.Fragment
func Navbar(brand htm.Fragment, links ...htm.Fragment) htm.Fragment
func NavbarBrand(target string, body htm.Fragment) htm.Fragment
func NavbarLink(target string, body htm.Fragment) htm.Fragment

func SubmitButton

func SubmitButton(text string, color ButtonColor, children ...htm.Fragment) htm.Fragment

func Table

func Table(headerRow htm.Group, rows []htm.Group, children ...htm.Fragment) htm.Fragment

Types

type AlertColor

type AlertColor string
const (
	AlertColorPrimary   AlertColor = "primary"
	AlertColorSecondary AlertColor = "secondary"
	AlertColorSuccess   AlertColor = "success"
	AlertColorDanger    AlertColor = "danger"
	AlertColorWarning   AlertColor = "warning"
	AlertColorInfo      AlertColor = "info"
	AlertColorLight     AlertColor = "light"
	AlertColorDark      AlertColor = "dark"
)

type ButtonColor

type ButtonColor string
const (
	ButtonColorPrimary   ButtonColor = "btn-primary"
	ButtonColorSecondary ButtonColor = "btn-secondary"
	ButtonColorSuccess   ButtonColor = "btn-success"
	ButtonColorDanger    ButtonColor = "btn-danger"
	ButtonColorWarning   ButtonColor = "btn-warning"
	ButtonColorInfo      ButtonColor = "btn-info"
	ButtonColorLight     ButtonColor = "btn-light"
	ButtonColorDark      ButtonColor = "btn-dark"
	ButtonColorLink      ButtonColor = "btn-link"
)

Jump to

Keyboard shortcuts

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