UNPKG

welcome-ui

Version:

Customizable design system with react • styled-components • styled-system and ariakit.

23 lines (22 loc) 879 B
import { default as React } from 'react'; import { ButtonProps } from '../Button'; import { CreateWuiProps } from '../System'; import { Size, Variant } from './theme'; export interface AlertOptions { closeButtonDataTestId?: string; cta?: JSX.Element; /** * @description add a close button with an onclick handleClose function */ handleClose?: () => void; icon?: JSX.Element | null; isFullWidth?: boolean; size?: Size; variant?: Variant; } export type AlertProps = CreateWuiProps<'div', AlertOptions>; export declare const Alert: import('../System').CreateWuiComponent<"div", AlertProps> & { Button: import('../System').CreateWuiComponent<"button", Omit<ButtonProps, "size">>; SecondaryButton: import('../System').CreateWuiComponent<"button", Omit<ButtonProps, "size">>; Title: React.FC<import('./Title').AlertTitleProps>; };