alert

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package alert provides alert components with different variants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(opts []Option, children ...g.Node) g.Node

Alert creates an alert container

func AlertDescription

func AlertDescription(text string) g.Node

AlertDescription creates an alert description

func AlertTitle

func AlertTitle(text string) g.Node

AlertTitle creates an alert title

Types

type Option

type Option func(*Props)

func WithAttrs

func WithAttrs(attrs ...g.Node) Option

func WithClass

func WithClass(class string) Option

func WithVariant

func WithVariant(v forgeui.Variant) Option

type Props

type Props struct {
	Variant forgeui.Variant
	Class   string
	Attrs   []g.Node
}

Jump to

Keyboard shortcuts

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