<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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<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;
    };
}>, {
    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;
        'xds:highlight-text': boolean;
    }>;
}, {}, {}, {}, 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;
    };
}>> & Readonly<{}>, {
    text: string;
    highlight: string;
    matchClass: string;
    noMatchClass: string;
    matchingPartClass: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
```
