Direction

Tells the components inside it whether text reads left to right or right to left, so menus, popups, sliders and keyboard arrows follow it. Wrap the app once, with the same direction as the dir attribute on <html>.

React

Ready
v4.1.0

Figma

Import

import { DirectionProvider, useDirection } from "@kela-systems/ui-components";

This page has no live example yet.

Props

DirectionProvider

No props of its own. It also takes the props of Base UI's direction-provider.

Also exported: useDirection (hook).

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.