anchor

Components (React)

These are UI components that integrate directly with Anchor’s reactive state.

Checkbox

A React component for a checkbox input, binding directly to a reactive state property.

type Checkbox = <T extends Bindable, K extends WritableKeys<T>>(props: InputProps<T, K>) => JSX.Element;

ColorPicker

A React component for a color input, binding directly to a reactive state property.

type ColorPicker = <T extends Bindable, K extends WritableKeys<T>>(props: InputProps<T, K>) => JSX.Element;

Input

A React component for a text input, binding directly to a reactive state property.

type Input = <T extends Bindable, K extends WritableKeys<T>>(props: InputProps<T, K>) => JSX.Element;

Radio

A React component for a radio button input, binding directly to a reactive state property.

type Radio = <T extends Bindable, K extends WritableKeys<T>>(props: InputProps<T, K>) => JSX.Element;

Select

A React component for a select dropdown, binding directly to a reactive state property.

type Select = <T extends Bindable, K extends WritableKeys<T>>(props: SelectProps<T, K>) => JSX.Element;

Toggle

A React component for a toggle button, binding directly to a reactive state property.

type Toggle = <T, K extends WritableKeys<T>>(props: ToggleProps<T, K>) => JSX.Element;