- Name
attrs- Kind
- property
- Type
PartProps- Requirement
- required
DocsAPI referenceHeadlessprop-bag
prop-bag headless API
The core connector and vanilla mount are always visible. Use the framework choice to inspect native composition, props, outputs, context and hooks for the selected adapter.
@grassroot/ui-headless-core/prop-bag
Core connector and vanilla API
ClassifiedPartProps
interfaceinterface ClassifiedPartProps { readonly attrs: PartProps; readonly events: Readonly<Record<string, unknown>>; readonly ref: unknown;}attrsPartPropseventsReadonly<Record<string, unknown>>refunknown- Name
events- Kind
- property
- Type
Readonly<Record<string, unknown>>- Requirement
- required
- Name
ref- Kind
- property
- Type
unknown- Requirement
- required
classifyPartProps
functionSplits framework-neutral connector props into attrs, events, and ref.
declare function classifyPartProps(props: PartProps): ClassifiedPartProps;propsPartPropsreturnClassifiedPartProps- Name
props- Kind
- parameter
- Type
PartProps- Requirement
- required
- Name
return- Kind
- return value
- Type
ClassifiedPartProps- Requirement
- n/a
isPartEventKey
functiondeclare function isPartEventKey(key: string): boolean;keystringreturnboolean- Name
key- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
boolean- Requirement
- n/a
PART_EVENT_KEY_RE
valueexport declare const PART_EVENT_KEY_RE: RegExp;partEventName
functionReturns the lowercase DOM event name represented by a connector event key.
declare function partEventName(key: string): string;keystringreturnstring- Name
key- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
string- Requirement
- n/a
Framework adapters
Each panel keeps its adapter's public vocabulary. React compound exports, Vue composables, standalone Angular declarations, Svelte components, and Solid hooks stay native to their framework.
This entry is core-only. No framework adapter package ships for prop-bag yet — mount it through the vanilla API above.