PlaygroundNodeV1
export exported by @mwillbanks/tuil-ghostty-web.
export
Public export exported by @mwillbanks/tuil-ghostty-web.
export interface PlaygroundNodeV1 {
readonly id: string;
readonly component: keyof typeof browserComponents;
readonly props: Readonly<Record<string, unknown>>;
readonly children?: readonly PlaygroundNodeV1[];
readonly slots?: Readonly<Record<string, readonly PlaygroundNodeV1[]>>;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
id | string | Yes | The id member uses the string contract. | — |
component | "Alert" | "AppBar" | "AppShell" | "Badge" | "Box" | "Button" | "Container" | "Divider" | "Heading" | "HStack" | "Progress" | "ResponsiveStack" | "Spinner" | "Stack" | "StatusBar" | "Text" | "VStack" | Yes | The component member uses the "Alert" | "AppBar" | "AppShell" | "Badge" | "Box" | "Button" | "Container" | "Divider" | "Heading" | "HStack" | "Progress" | "ResponsiveStack" | "Spinner" | "Stack" | "StatusBar" | "Text" | "VStack" contract. | Alert, AppBar, AppShell, Badge, Box, Button, Container, Divider, HStack, Heading, Progress, ResponsiveStack, Spinner, Stack, StatusBar, Text, VStack |
props | Readonly<Record<string, unknown>> | Yes | The props member uses the Readonly<Record<string, unknown>> contract. | — |
children | readonly PlaygroundNodeV1[] | undefined | No | The children member uses the readonly PlaygroundNodeV1[] | undefined contract. | PlaygroundNodeV1 |
slots | Readonly<Record<string, readonly PlaygroundNodeV1[]>> | undefined | No | The slots member uses the Readonly<Record<string, readonly PlaygroundNodeV1[]>> | undefined contract. | PlaygroundNodeV1 |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
No package-local related types.
Source
View the secondary source reference