<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [Highlight](./x-components.highlight.md)

## Highlight 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;
}, {}>
```
