Skip to content

components/alert

@fungi.computer/caps


@fungi.computer/caps / components/alert

AlertTone = "neutral" | "primary" | "secondary" | "accent" | "success" | "info" | "warning" | "error"

Supported AlertTone values.


AlertProps = object & Omit<HTMLAttributes<HTMLDivElement>>, "title">>

Props accepted by Alert.

optional action?: ReactNode

optional description?: ReactNode

optional title?: ReactNode

optional tone?: AlertTone

const Alert: ForwardRefExoticComponent<object & Omit<HTMLAttributes<HTMLDivElement>>, "title"> > & RefAttributes<HTMLDivElement>>>>

A caller-labelled alert presentation.