UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

32 lines (31 loc) 1.51 kB
/// <reference types="react" /> import { RoleOptions, RoleHTMLProps } from "../Role/Role"; export declare type SeparatorOptions = RoleOptions & { /** * Separator's orientation. */ orientation?: "horizontal" | "vertical"; }; export declare type SeparatorHTMLProps = RoleHTMLProps; export declare type SeparatorProps = SeparatorOptions & SeparatorHTMLProps; export declare const useSeparator: { (options?: SeparatorOptions | undefined, htmlProps?: RoleHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): RoleHTMLProps; unstable_propsAreEqual: (prev: RoleOptions & { /** * Separator's orientation. */ orientation?: "horizontal" | "vertical" | undefined; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }, next: RoleOptions & { /** * Separator's orientation. */ orientation?: "horizontal" | "vertical" | undefined; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }) => boolean; __keys: readonly any[]; __useOptions: (options: SeparatorOptions, htmlProps: RoleHTMLProps) => SeparatorOptions; }; export declare const Separator: import("reakit-system/ts/createComponent").Component<"hr", SeparatorOptions>;