Direction
typeSource L5Type contract for Direction.
type Direction = "ltr" | "rtl"Open-code aq-ui React hook for Use Direction.
pnpm dlx aq-ui@alpha add use-directionImport the parts you need, then jump to an export for its contract.
"use client"
import { useDirection } from "@/hooks/use-direction"
const result = useDirection()Type contract for Direction.
type Direction = "ltr" | "rtl"Open-code aq-ui React hook for Use Direction.
function useDirection(defaultDirection: Direction = "ltr"): DirectionDirection| Name | Type | Default |
|---|---|---|
defaultDirection? | Direction | "ltr" |