@age/quantum
Version:
Catho react components
20 lines (17 loc) • 496 B
TypeScript
import React from 'react';
export interface AlertProps {
children: React.ReactNode;
onClose: React.MouseEventHandler<HTMLButtonElement>;
icon?: string;
skin?: 'primary' | 'success' | 'error' | 'neutral' | 'warning';
theme?: {
baseFontSize?: number;
colors?: object;
spacing?: object;
components?: {
alert?: object;
button?: object;
};
};
}
export default class Alert extends React.Component<AlertProps> {}