UNPKG

@empathyco/x-components

Version:
40 lines (32 loc) 1.35 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ResultVariantsProvider](./x-components.resultvariantsprovider.md) ## ResultVariantsProvider variable Component that exposes the result merged with its selected variant in the default slot. It receives the original result and keeps track of the selected variant. It provides the original result, the array containing the selected variants and a callback to set the selected variant to be used from a child. **Signature:** ```typescript _default: import("vue").DefineComponent<{ result: { type: PropType<Result>; required: true; }; autoSelectDepth: { type: NumberConstructor; default: number; }; }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }> | "", unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ result: { type: PropType<Result>; required: true; }; autoSelectDepth: { type: NumberConstructor; default: number; }; }>>, { autoSelectDepth: number; }, {}> ```