Types

JSX

Selected public types from the JSX namespace. Element-specific attributes are available through JSX.IntrinsicElements.


Import

import type { JSX } from "@solidjs/web";

Type signature

namespace JSX {
type Element = SolidElement | Node | ArrayElement;
type ClassValue =
| string
| number
| boolean
| null
| undefined
| Record<string, boolean>
| ClassValue[];
type RefCallback<T> = (element: T) => void;
type Ref<T> = T | RefCallback<T> | undefined | Ref<T>[];
interface CSSProperties extends csstype.PropertiesHyphen {
[key: `-${string}`]: string | number | undefined;
}
interface IntrinsicElements
extends
HTMLElementTags,
HTMLElementDeprecatedTags,
SVGElementTags,
MathMLElementTags {}
}

Learn more


ArrayElement

interface ArrayElement extends Array<Element> {}

Element

type Element =
| RenderedElement
| ArrayElement
| (string & {})
| number
| boolean
| null
| undefined;

IntrinsicElement

type IntrinsicElement = Extract<keyof JSX.IntrinsicElements, string>;

ResolvedElement

type ResolvedElement = Exclude<JSX.Element, ArrayElement>;
Last updated: 9/27/26, 8:11 AMEdit this pageReport an issue with this page