Documentation
¶
Overview ¶
templ: version: v0.3.977
Index ¶
- func Bubble(props ...BubbleProps) templ.Component
- func Chat(props Props) templ.Component
- func Footer(props ...FooterProps) templ.Component
- func Header(props ...HeaderProps) templ.Component
- func Image(props ...ImageProps) templ.Component
- type BubbleProps
- type BubbleVariant
- type FooterProps
- type HeaderProps
- type ImageProps
- type Position
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bubble ¶
func Bubble(props ...BubbleProps) templ.Component
func Footer ¶
func Footer(props ...FooterProps) templ.Component
func Header ¶
func Header(props ...HeaderProps) templ.Component
func Image ¶
func Image(props ...ImageProps) templ.Component
Types ¶
type BubbleProps ¶
type BubbleProps struct {
ID string
Class string
Attributes templ.Attributes
Variant BubbleVariant
}
BubbleProps configures the chat bubble.
type BubbleVariant ¶
type BubbleVariant string
BubbleVariant controls the color of the chat bubble.
const ( BubbleVariantDefault BubbleVariant = "" BubbleVariantPrimary BubbleVariant = "chat-bubble-primary" BubbleVariantSecondary BubbleVariant = "chat-bubble-secondary" BubbleVariantAccent BubbleVariant = "chat-bubble-accent" BubbleVariantNeutral BubbleVariant = "chat-bubble-neutral" BubbleVariantInfo BubbleVariant = "chat-bubble-info" BubbleVariantSuccess BubbleVariant = "chat-bubble-success" BubbleVariantWarning BubbleVariant = "chat-bubble-warning" BubbleVariantError BubbleVariant = "chat-bubble-error" )
type HeaderProps ¶
type HeaderProps struct {
ID string
Class string
Attributes templ.Attributes
}
HeaderProps configures the chat header text.
type ImageProps ¶
type ImageProps struct {
ID string
Class string
Attributes templ.Attributes
}
ImageProps configures the chat avatar image container.
Click to show internal directories.
Click to hide internal directories.