UNPKG

@dnanpm/styleguide

Version:

DNA Styleguide repository provides the set of components and theme object used in various DNA projects.

40 lines (39 loc) 937 B
import type { ReactNode } from 'react'; import React from 'react'; interface Props { /** * Unique ID for the component */ id?: string; /** * Content of Divider component */ children?: ReactNode; /** * Allows to pass a custom margin * * @default '0.625rem 0' */ margin?: string; /** * Allows to pass a custom padding * * @default '0' */ padding?: string; /** * Allows to pass testid string for testing purposes */ 'data-testid'?: string; /** * Allows to pass a custom className */ className?: string; /** * An aria-label to the focusable separator should be included if there is more than one focusable separator */ ariaLabelFocusableSeparator?: string; } declare const Divider: ({ "data-testid": dataTestId, ...props }: Props) => React.JSX.Element; /** @component */ export default Divider;