@empathyco/x-components
Version:
Empathy X Components
43 lines (37 loc) • 1.59 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Redirection](./x-components.redirection.md)
## Redirection variable
A redirection is a component that sends the user to a link in the website. It is helpful when there are queries like `help`<!-- -->, `shipping costs`<!-- -->, `my account`<!-- -->, where a link to a section in the website will be more helpful than the set of results returned.
**Signature:**
```typescript
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
mode: {
type: PropType<"auto" | "manual">;
default: string;
};
delayInSeconds: {
type: NumberConstructor;
default: number;
};
}>, {
redirection: import("vue").ComputedRef<RedirectionModel | null>;
redirect: () => void;
abortRedirect: () => void;
isRedirecting: Ref<boolean, boolean>;
slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
mode: {
type: PropType<"auto" | "manual">;
default: string;
};
delayInSeconds: {
type: NumberConstructor;
default: number;
};
}>> & Readonly<{}>, {
mode: "auto" | "manual";
delayInSeconds: number;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
```