Wraps your app to provide a global direction for all components (LTR or RTL).
Wrap your application root with this provider to set the text direction globally.
<ui-direction-provider direction="ltr">
<!-- Your app content -->
<p class="text-sm text-muted-foreground">Wrap your application root with this provider to set the text direction globally.</p>
</ui-direction-provider>
<ui-direction-provider>
<ui-direction-provider>| Prop | Type | Default | Description |
|---|---|---|---|
direction | "ltr" | "rtl" | "ltr" | The text direction. |
All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.