Modal
Overlays · Button, Input, Modal
Props
| Prop | Type | Notes |
|---|
variant? | "primary" | "secondary" | "soft" | "ghost" | "danger" | "danger-solid" | |
size? | "md" | "sm" | |
icon? | IconName | |
iconRight? | IconName | |
disabled? | boolean | |
type? | "button" | "submit" | |
onClick? | (e: MouseEvent<HTMLButtonElement>) => void | |
children? | ReactNode | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
| Prop | Type | Notes |
|---|
type? | string | |
placeholder? | string | |
value? | string | |
defaultValue? | string | |
disabled? | boolean | |
onChange? | (e: ChangeEvent<HTMLInputElement>) => void | |
label? | string | |
hint? | string | |
error? | string | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Modal
| Prop | Type | Notes |
|---|
title | string | Required |
text? | string | |
icon? | IconName | |
tint? | Tint | |
actions? | ReactNode[] | |
onClose? | () => void | |
style? | CSSProperties | |
children? | ReactNode | |
className? | string | Extra class on the root element. |