chat

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bubble

func Bubble(props ...BubbleProps) templ.Component

func Chat

func Chat(props Props) templ.Component
func Footer(props ...FooterProps) templ.Component
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 FooterProps

type FooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

FooterProps configures the chat footer text.

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.

type Position

type Position string

Position controls whether the chat bubble aligns left or right.

const (
	PositionStart Position = "chat-start"
	PositionEnd   Position = "chat-end"
)

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Position   Position
}

Props configures the chat container.

Jump to

Keyboard shortcuts

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