@papernote/ui
Version:
A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive
17 lines • 604 B
TypeScript
import React from 'react';
export interface AlertAction {
label: string;
onClick: () => void;
variant?: 'primary' | 'secondary';
}
export interface AlertProps {
variant?: 'success' | 'error' | 'warning' | 'info';
title?: string;
children: React.ReactNode;
onClose?: () => void;
className?: string;
/** Action buttons to display at the bottom of the alert */
actions?: AlertAction[];
}
export default function Alert({ variant, title, children, onClose, className, actions, }: AlertProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Alert.d.ts.map