UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

20 lines (19 loc) 712 B
import React from "react"; import { SpacingProps } from "./Spacing"; export interface DividerProps extends React.HTMLAttributes<HTMLHRElement> { /** * Add whitespace arount the horizontal rule. */ addSpacing?: "none" | SpacingProps["size"]; /** * Set the width of the horizontal rule. */ width?: "short" | "half" | "medium" | "full"; /** * Set the horizontal alignment of the horizontal rule. * This is only visible for widths that are not set to `full`. */ alignment?: "left" | "center" | "right"; } export declare function Divider({ className, addSpacing, width, alignment, ...otherHrProps }: DividerProps): React.JSX.Element; export default Divider;