@empathyco/x-components
Version:
Empathy X Components
43 lines • 1.55 kB
TypeScript
import type { Banner as BannerModel } from '@empathyco/x-types';
import type { PropType } from 'vue';
/**.
* A banner result is just an item that has been inserted into the search results to advertise
* something. Usually it is the first item in the grid or it can be placed in the middle of them
* and fill the whole row where appears.
* The banner may be clickable or non-clickable depending on whether it has an associated URL
* or not. It contains an image and, optionally, a title. In case the image does not
* load due to an error the banner will not be rendered.
*
* Additionally, this component exposes the following props to modify the classes of the
* elements: `titleClass`.
*
* @public
*/
declare const _default: import("vue").DefineComponent<{
/**
* The banner data.
*
* @public
*/
banner: {
type: PropType<BannerModel>;
required: true;
};
titleClass: StringConstructor;
}, {
imageFailed: import("vue").Ref<boolean>;
anchorEvents: () => Partial<{ [key in keyof GlobalEventHandlersEventMap]: () => void; }>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* The banner data.
*
* @public
*/
banner: {
type: PropType<BannerModel>;
required: true;
};
titleClass: StringConstructor;
}>>, {}, {}>;
export default _default;
//# sourceMappingURL=banner.vue?vue&type=script&lang.d.ts.map