primevue-mirror/components/divider/Divider.d.ts

61 lines
1.5 KiB
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type DividerHorizontalAlignType = 'left' | 'center' | 'right' | undefined;
type DividerVerticalAlignType = 'top' | 'center' | 'bottom' | undefined;
type DividerAlignType = DividerHorizontalAlignType | DividerVerticalAlignType | undefined;
type DividerLayoutType = 'horizontal' | 'vertical' | undefined;
type DividerType = 'solid' | 'dashed' | 'dotted' | undefined;
export interface DividerProps {
/**
* Alignment of the content, options are 'left', 'center', 'right' for horizontal layout and 'top', 'center', 'bottom' for vertical.
* @see DividerAlignType
*/
align?: DividerAlignType;
/**
* Specifies the orientation, valid values are 'horizontal' and 'vertical'.
* @see DividerLayoutType
* Default value is 'horizontal'.
*/
layout?: DividerLayoutType;
/**
* Border style type.
* @see DividerType
* Default value is 'solid'.
*/
type?: DividerType;
}
export interface DividerSlots {
/**
* Default content slot.
*/
default: () => VNode[];
}
2022-09-14 11:26:01 +00:00
export declare type DividerEmits = {};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class Divider extends ClassComponent<DividerProps, DividerSlots, DividerEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
Divider: GlobalComponentConstructor<Divider>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* Divider is used to separate contents.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [Divider](https://www.primefaces.org/primevue/divider)
2022-09-06 12:03:37 +00:00
*
*/
export default Divider;