liber-salti
Version:
Saltí - Liber Design System
28 lines (27 loc) • 667 B
TypeScript
import React from 'react';
export interface DialogProps {
/**
* If `true`, the Dialog width will be set to `fit-content` on large screens.
*/
fitContent?: boolean;
/**
* If `true`, the Dialog will show.
*/
open: boolean;
/**
* The callback of the native onClose action.
*/
onClose?: () => void;
/**
* If `true`, the Dialog will show a red border.
*/
error?: boolean;
/**
* If `true`, the Dialog will show an alert message at the bottom.
*/
errorMessage?: string;
/**
* The children of the component
*/
children?: React.ReactNode;
}