UNPKG

@tolokoban/ui

Version:

React components with theme

38 lines 1.33 kB
import React from "react"; import { Children, Circumference, ColorName } from "../../types.js"; import { ViewButtonProps } from "../Button/index.js"; export type CustomButtonProps = Partial<ViewButtonProps>; export interface ViewDialogProps { className?: string; /** * If defined, the `title` will appear in the dialog header. */ title?: React.ReactNode; padding?: Circumference; /** * Customize the __Cancel__ button. * The buton will appear only if you set at least the `onClick` attribute. */ buttonCancel?: CustomButtonProps; /** * Customize the __Validate__ button. * The buton will appear only if you set at least the `onClick` attribute. */ buttonValidate?: CustomButtonProps; /** * Color of the header. Default to `primary-5`. */ headColor?: ColorName; /** * Color of the body. Default to `neutral-7`. */ bodyColor?: ColorName; /** * Color of the footer. Default to `neutral-5`. */ footColor?: ColorName; shadow?: number; children: Children; } export declare function ViewDialog({ className, buttonCancel, buttonValidate, title, padding, shadow, headColor, bodyColor, footColor, children, }: ViewDialogProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Dialog.d.ts.map