Skip to content

Binder context

The binder context provides the binder instance to all components. This context is provided by the output component.

const BinderContext: ComponentContext<Binder>
import { useBinder } from "@alloy-js/core";
const myContext = useBinder();

Returns the current Binder from context, or undefined if no binder is available. The binder is provided by the Output component.

Binder