Skip to main content
You are viewing Pre-Alpha documentation.
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One

Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

useRtl API

API reference for the useRtl composable.

Functions

createRtl

(options?: RtlOptions) => RtlContext

Creates a new RTL direction instance.

createRtlFallback

() => RtlContext

createRtlContext

<_E>(_options?: RtlContextOptions | undefined) => ContextTrinity<_E>

createRtlPlugin

(_options?: RtlContextOptions | undefined) => Plugin

useRtl

<_E>(namespace?: string) => _E

Options

default

boolean | undefined

Initial direction. Defaults to false (LTR).

adapter

RtlAdapter | undefined

Adapter for framework-specific side-effects.

target

string | HTMLElement | null | undefined

Target element or selector for dir attribute. Defaults to documentElement.

Properties

isRtl

Ref<boolean, boolean>

Writable ref — true = RTL, false = LTR

Methods

toggle

() => void

Convenience method to flip direction

Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/