@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.
19 lines • 584 B
TypeScript
import * as React from 'react';
import { type TextDirection } from "./DirectionContext.js";
/**
* Enables RTL behavior for Base UI components.
*
* Documentation: [Base UI Direction Provider](https://base-ui.com/react/utils/direction-provider)
*/
export declare const DirectionProvider: React.FC<DirectionProvider.Props>;
export interface DirectionProviderProps {
children?: React.ReactNode;
/**
* The reading direction of the text
* @default 'ltr'
*/
direction?: TextDirection;
}
export declare namespace DirectionProvider {
type Props = DirectionProviderProps;
}