@empathyco/x-components
Version:
Empathy X Components
74 lines (68 loc) • 2.02 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Highlight\_2](./x-components.highlight_2.md)
## Highlight\_2 variable
Highlights the given part of the text. The component is smart enough to do matches between special characters like tilde, cedilla, eñe, capital letters...
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
text: {
type: StringConstructor;
default: string;
};
highlight: {
type: StringConstructor;
default: string;
};
matchClass: {
type: StringConstructor;
default: string;
};
noMatchClass: {
type: StringConstructor;
default: string;
};
matchingPartClass: {
type: StringConstructor;
default: string;
};
}, {
hasMatch: import("vue").ComputedRef<boolean>;
matchParts: import("vue").ComputedRef<{
start: string;
match: string;
end: string;
}>;
dynamicCSSClasses: import("vue").ComputedRef<{
[x: string]: boolean;
'x-highlight--has-match': boolean;
'x-highlight-text': boolean;
}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
text: {
type: StringConstructor;
default: string;
};
highlight: {
type: StringConstructor;
default: string;
};
matchClass: {
type: StringConstructor;
default: string;
};
noMatchClass: {
type: StringConstructor;
default: string;
};
matchingPartClass: {
type: StringConstructor;
default: string;
};
}>>, {
text: string;
highlight: string;
matchClass: string;
noMatchClass: string;
matchingPartClass: string;
}, {}>
```