13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
|
||
|
|
type Direction = 'ltr' | 'rtl';
|
||
|
|
interface DirectionProviderProps {
|
||
|
|
children?: React.ReactNode;
|
||
|
|
dir: Direction;
|
||
|
|
}
|
||
|
|
declare const DirectionProvider: React.FC<DirectionProviderProps>;
|
||
|
|
declare function useDirection(localDir?: Direction): Direction;
|
||
|
|
declare const Provider: React.FC<DirectionProviderProps>;
|
||
|
|
|
||
|
|
export { DirectionProvider, Provider, useDirection };
|