element-plus
Version:
A Component Library for Vue 3
25 lines (24 loc) • 1.24 kB
TypeScript
import type { ExtractPublicPropTypes } from 'vue';
import type Divider from './divider.vue';
export type BorderStyle = CSSStyleDeclaration['borderStyle'];
export interface DividerProps {
/**
* @description Set divider's direction
*/
direction?: 'horizontal' | 'vertical';
/**
* @description Set the style of divider
*/
contentPosition?: 'left' | 'center' | 'right';
/**
* @description the position of the customized content on the divider line
*/
borderStyle?: BorderStyle;
}
export declare const dividerProps: {
readonly direction: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
readonly contentPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "center" | "left" | "right", unknown, "center", boolean>;
readonly borderStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "solid", boolean>;
};
export type DividerPropsPublic = ExtractPublicPropTypes<typeof dividerProps>;
export type DividerInstance = InstanceType<typeof Divider> & unknown;