maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
83 lines (82 loc) • 2.37 kB
TypeScript
import { IconComponent } from '@maz-ui/icons';
import { MazIconProps } from './MazIcon.vue';
export interface MazContainerProps {
/**
* Title of the card in header
*/
title?: string;
/**
* Add elevation to the component
* @default false
*/
elevation?: boolean;
/**
* Add padding to the content
* @default true
*/
padding?: boolean;
/**
* Add border to the component
* @default true
*/
bordered?: boolean;
/**
* Size of the rounded
* @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'base'`
* @type {'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'base'}
* @default 'base'
*/
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'base';
/**
* Remove background color
* @default false
*/
transparent?: boolean;
/**
* Hide overflow
* @default true
*/
overflowHidden?: boolean;
/**
* Add icon to the header on the left
* @type {IconComponent | string}
*/
leftIcon?: IconComponent | string;
/**
* Add icon to the header on the right
* @type {IconComponent | string}
*/
rightIcon?: IconComponent | string;
/**
* Size of the icon
* @type {MazIconProps['size']}
* @default 'md'
*/
iconSize?: MazIconProps['size'];
/**
* Display the container in full width
* @default false
*/
block?: boolean;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
header?(_: {}): any;
'icon-left'?(_: {}): any;
title?(_: {}): any;
'icon-right'?(_: {}): any;
default?(_: {}): any;
};
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<MazContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};