@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
34 lines (31 loc) • 1.04 kB
TypeScript
import { ElementType } from 'react';
import { ClassValue } from 'clsx';
import { Interpolation } from '@nex-ui/system';
import { OverrideProps } from '../../types/utils.js';
import { DividerVariants } from '../../theme/recipes/divider.js';
interface DividerPropsOverrides {
}
type DividerOwnProps<RootComponent extends ElementType> = {
/**
* The component or element to render as the root.
*
* @default 'hr'
*/
as?: RootComponent;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: Interpolation;
/**
* Additional class names to apply to the root.
*/
className?: ClassValue;
/**
* The orientation of the Divider.
*
* @default 'horizontal'
*/
orientation?: DividerVariants['orientation'];
};
type DividerProps<RootComponent extends ElementType = 'hr'> = OverrideProps<RootComponent, DividerOwnProps<RootComponent>, DividerPropsOverrides>;
export type { DividerProps, DividerPropsOverrides };