@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
26 lines • 818 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps, Orientation } from "../utils/types.js";
/**
* A separator element accessible to screen readers.
* Renders a `<div>` element.
*
* Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)
*/
export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
export interface SeparatorProps extends BaseUIComponentProps<'div', Separator.State> {
/**
* The orientation of the separator.
* @default 'horizontal'
*/
orientation?: Orientation;
}
export interface SeparatorState {
/**
* The orientation of the separator.
*/
orientation: Orientation;
}
export declare namespace Separator {
type Props = SeparatorProps;
type State = SeparatorState;
}