components/PreviewWindow
import { … } from 'zidane-ui'ui/src/components/PreviewWindow.tsx
Components#
PreviewWindowComponent#
Renders a window frame around a preview, themed by vars when given.
function PreviewWindow(props: PreviewWindowProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | PreviewWindowProps | Component props. |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| appearance? | 'dark' | 'light' | Light or dark, for |
| children | ReactNode | The preview. |
| className? | string | Extra classes on the window. |
| label? | string | Accessible name of the preview. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |
| title? | ReactNode | Caption in the title bar. |
| vars? | Readonly<Record<string, string>> | A theme's CSS variables, the full set the app applies: |
Interfaces#
PreviewWindowPropsInterface#
Props for PreviewWindow.
interface PreviewWindowPropsProperties
| Name | Type | Description |
|---|---|---|
| appearance? | 'dark' | 'light' | Light or dark, for |
| children | ReactNode | The preview. |
| className? | string | Extra classes on the window. |
| label? | string | Accessible name of the preview. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |
| title? | ReactNode | Caption in the title bar. |
| vars? | Readonly<Record<string, string>> | A theme's CSS variables, the full set the app applies: |