@stratakit/bricks
Version:
Small, modular components for StrataKit
25 lines (24 loc) • 1.03 kB
TypeScript
import type { SeparatorProps } from "@ariakit/react/separator";
import type { BaseProps } from "@stratakit/foundations/secret-internals";
interface DividerProps extends BaseProps<"hr">, Pick<SeparatorProps, "orientation"> {
/**
* If true, the divider will be purely presentational and will not have any associated semantics.
*
* @default false
*/
presentational?: boolean;
/**
* If true, the divider will extend to the edges of the nearest scrollable container.
*
* @default false
*/
bleed?: boolean;
}
/**
* A styled "separator" element (e.g. `<hr>`), useful for grouping and dividing content within a layout.
*
* A `Divider` can be oriented horizontally or vertically (using the `orientation` prop),
* and can be a semantic divider or a purely presentational one (using the `presentational` prop).
*/
declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLElement | HTMLHRElement>>;
export default Divider;