retro-react
Version:
A React component library for building retro-style websites
29 lines (28 loc) • 954 B
TypeScript
/// <reference types="react" />
import { ThemeUICSSObject } from 'theme-ui';
import { ColorGradients } from "../../utils/getColorGradients";
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* The orientation of the divider.
*
* @default 'horizontal'
*/
orientation?: 'vertical' | 'horizontal';
/**
* The color of the divider.
*
* @default 'primary'
*/
color?: ColorGradients;
/**
* Whether the divider should be a flex item. If `true`, the divider will fit to the width of its container and will not be full width.
*
* @default false
*/
flexItem?: boolean;
sx?: ThemeUICSSObject;
}
/**
* A divider with a gradient color. The gradient is defined by the `color` prop.
*/
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>;