Skip to content
API reference

components/alert

Import
import * as api from "@fungi.computer/caps/components/alert";
Kind Export Description
type alias AlertTone Supported AlertTone values.
type alias AlertProps Props accepted by Alert.
constant Alert A caller-labelled alert presentation.

AlertTonetype alias

Section titled “AlertTone”
Signature
type AlertTone =
| "neutral"
| "primary"
| "secondary"
| "accent"
| "success"
| "info"
| "warning"
| "error";

Supported AlertTone values.


AlertPropstype alias

Section titled “AlertProps”
Signature
type AlertProps = object & Omit<HTMLAttributes<HTMLDivElement>, "title">;

Props accepted by Alert.

Name Type
action? ReactNode
description? ReactNode
title? ReactNode
tone? AlertTone

Alertconstant

Section titled “Alert”
Signature
const Alert: ForwardRefExoticComponent<
object &
Omit<HTMLAttributes<HTMLDivElement>, "title"> &
RefAttributes<HTMLDivElement>
>;

A caller-labelled alert presentation.