Browse documentation

Component

Type. Callable functional component shape.

Table of contents

Category

Type

Type import

ts
import type { Component } from "valyrian.js";

Public signature

ts
interface Component extends Record<string | number | symbol, any> { (props: Properties, children: any[]): Vnode | any; }

Type usage

Component describes a callable component that receives vnode properties and children.