KuitoNode
A renderable child: elements, text, conditionals, signals, reactive thunks and lists.
Utilização
Build a view wrapper that accepts layout props.
// Build a view wrapper that accepts layout props.
import { Box, type KuitoNode, type LayoutProps } from 'kuito';
// Only layout passes through: the frame keeps its own look.
function Frame(props: LayoutProps & { children?: KuitoNode }) {
return <Box borderWidth={1} borderColor="#d1d1d6" borderRadius={8} {...props} />;
}
<Frame width="50%" aspectRatio={1} margin={8} />;Declaração do tipo
export type KuitoNode =
| KuitoElement
| string
| number
| boolean
| null
| undefined
| ReadonlySignal<KuitoNode>
| (() => KuitoNode)
| readonly KuitoNode[];Tipo
string | number | boolean | KuitoElement | ReadonlySignal<KuitoNode> | (() => KuitoNode) | readonly KuitoNode[]Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.