UNPKG

@spark-web/divider

Version:

--- title: Divider storybookPath: page-layout-divider--default isExperimentalPackage: false ---

14 lines (13 loc) 589 B
/// <reference types="react" /> import type { BrighteTheme } from '@spark-web/theme'; declare type DividerColor = keyof Omit<BrighteTheme['border']['color'], 'focus' | 'standardInverted' | 'field' | 'fieldAccent' | 'fieldDisabled'>; export declare type DividerProps = { /** The color of the divider */ color?: DividerColor; /** The width of the divider */ width?: keyof BrighteTheme['border']['width']; /** Display the divider vertically */ vertical?: boolean; }; export declare const Divider: ({ color, vertical, width, }: DividerProps) => JSX.Element; export {};