UNPKG

@yuntijs/ui

Version:

☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps

39 lines (38 loc) 1.25 kB
import { type DividerProps as AntdDividerProps } from 'antd'; import React from 'react'; export interface CustomDividerProps { /** * @description type of the divider * @default 'default' */ mode?: 'expanded' | 'line' | 'default'; /** * @description Default whether to expand. This parameter is available only when mode is expanded * @default 'false' */ defaultOpen?: boolean; /** * @description Expand content. This parameter is available only when mode is expanded * @default '-' */ content?: React.ReactNode; /** * @description The position of icon. This parameter is available only when mode is expanded and default * @default 'left' */ iconPlacement?: 'left' | 'right'; /** * @description custom open icon. This parameter is available only when mode is expanded * @default '-' */ openIcon?: React.ReactNode; /** * @description custom close icon. This parameter is available only when mode is expanded * @default '-' */ closeIcon?: React.ReactNode; } export interface DividerProps extends AntdDividerProps, CustomDividerProps { } export declare const Divider: React.FC<DividerProps>; export default Divider;