Skip to content
This page is available as Markdown at /api/toolbar/functions/useapplicableschema.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

useApplicableSchema

useApplicableSchema(): ApplicableSchema

Defined in: toolbar/src/use-applicable-schema.ts:21

React hook that subscribes to getApplicableSchema for the active editor and returns a stable reference across editor ticks while the applicable set is unchanged.

Pair with useToolbarSchema to render a static toolbar whose buttons stay stable across selection moves and gate their enabled state on whether the corresponding name is in the relevant set.

ApplicableSchema