maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
66 lines (65 loc) • 1.99 kB
TypeScript
import { MazLinkProps } from './MazLink.vue';
export interface MazReadMoreProps {
/**
* The text to be truncated.
*/
text?: string;
/**
* The maximum number of lines to be displayed.
* @default 4
*/
maxLines?: number;
/**
* The maximum number of characters to be displayed.
*/
maxChars?: number;
/**
* The color of the link (MazLink).
* @type {MazLinkProps['color']}
* @default 'primary'
*/
color?: MazLinkProps['color'];
/**
* The text of the link when the content is collapsed.
* @default 'readMore.collapse' (translations)
*/
collapseText?: string;
/**
* The text of the link when the content is expanded.
* @default 'readMore.expand' (translations)
*/
expandText?: string;
/**
* Unique identifier for accessibility linking.
*/
id?: string;
/**
* Accessibility label for the content region.
* @default 'readMore.ariaLabel' (translations)
*/
ariaLabel?: string;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
default?(_: {}): any;
};
refs: {
hiddenSlotRef: HTMLDivElement;
contentRef: HTMLDivElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<MazReadMoreProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazReadMoreProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
hiddenSlotRef: HTMLDivElement;
contentRef: HTMLDivElement;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};