@base-ui/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.
22 lines • 1.02 kB
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps, Orientation } from "../../internals/types.js";
import { Separator, type SeparatorState } from "../../separator/index.js";
/**
* A separator element accessible to screen readers.
* Renders a `<div>` element.
*
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
*/
export declare const ToolbarSeparator: React.ForwardRefExoticComponent<Omit<ToolbarSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export interface ToolbarSeparatorState extends SeparatorState {}
export interface ToolbarSeparatorProps extends BaseUIComponentProps<'div', ToolbarSeparatorState>, Separator.Props {
/**
* The orientation of the separator. Defaults to the opposite of the toolbar's
* orientation, so a horizontal toolbar renders vertical separators.
*/
orientation?: Orientation | undefined;
}
export declare namespace ToolbarSeparator {
type State = ToolbarSeparatorState;
type Props = ToolbarSeparatorProps;
}