Documentation ¶
Overview ¶
templ: version: v0.2.747
Index ¶
Constants ¶
View Source
const RootClassName = "alert"
Variables ¶
This section is empty.
Functions ¶
func Show ¶
func Show(props AlertProps) templ.Component
Types ¶
type AlertClass ¶
type AlertClass string
const DangerAlert AlertClass = "alert-danger"
const DarkAlert AlertClass = "alert-dark"
const InfoAlert AlertClass = "alert-info"
const LightAlert AlertClass = "alert-light"
const PrimaryAlert AlertClass = "alert-primary"
const SecondaryAlert AlertClass = "alert-secondary"
const SuccessAlert AlertClass = "alert-success"
const WarningAlert AlertClass = "alert-warning"
type AlertProps ¶
type AlertProps struct { base.ElementProps AlertType AlertClass Heading string }
func (AlertProps) BuildClassNames ¶
func (ap AlertProps) BuildClassNames() (classes string)
Click to show internal directories.
Click to hide internal directories.