@empathyco/x-components
Version:
Empathy X Components
40 lines (32 loc) • 1.35 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [ResultVariantsProvider](./x-components.resultvariantsprovider.md)
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, {
[]: 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;
}, {}>
```