API reference
components/alert
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/alert";Exports
Section titled “Exports”| 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”type AlertTone = | "neutral" | "primary" | "secondary" | "accent" | "success" | "info" | "warning" | "error";Supported AlertTone values.
AlertPropstype alias
Section titled “AlertProps”type AlertProps = object & Omit<HTMLAttributes<HTMLDivElement>, "title">;Props accepted by Alert.
Type Declaration
Section titled “Type Declaration”| Name | Type |
|---|---|
action? |
ReactNode |
description? |
ReactNode |
title? |
ReactNode |
tone? |
AlertTone |
Alertconstant
Section titled “Alert”const Alert: ForwardRefExoticComponent< object & Omit<HTMLAttributes<HTMLDivElement>, "title"> & RefAttributes<HTMLDivElement>>;A caller-labelled alert presentation.