@coconut-software/ui
Version:
React components for faster and easier web development.
26 lines (25 loc) • 820 B
TypeScript
import type { PropsWithChildren } from 'react';
interface BaseProps {
absolute?: boolean;
component?: DividerComponent;
}
type OrientationProps = {
orientation?: 'horizontal';
flex?: never;
} | {
orientation: 'vertical';
flex?: boolean;
};
type VariantProps = {
insetSize?: DividerInsetSize;
variant: 'inset';
} | {
insetSize?: never;
variant?: DividerVariant;
};
export type DividerProps = BaseProps & VariantProps & OrientationProps;
type DividerComponent = 'hr' | 'li';
type DividerInsetSize = 'small' | 'medium' | 'large';
type DividerVariant = 'fullWidth' | 'inset' | 'middle';
declare function Divider({ absolute, component: Component, flex, insetSize, orientation, variant, }: PropsWithChildren<DividerProps>): JSX.Element;
export default Divider;