UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

14 lines (13 loc) 795 B
import type { ReactElement } from "react"; import { type ColorVariants } from "../style/Color.js"; import { type FlexVariants } from "../style/Flex.js"; import { type Status } from "../style/Status.js"; import type { OptionalChildProps } from "../util/props.js"; export interface NoticeProps extends FlexVariants, ColorVariants, OptionalChildProps { /** Status for the notice (e.g. `status="success"`). */ status?: Status | undefined; /** Icon for the notice (or `null` or `false` to hide the icon, defaults to `<StatusIcon>`). */ icon?: ReactElement | false | undefined; } export declare function Notice({ children, status, icon, ...variants }: NoticeProps): import("react/jsx-runtime").JSX.Element; export declare const LOADING_NOTICE: import("react/jsx-runtime").JSX.Element;