UNPKG

@indielayer/ui

Version:

Indielayer UI Components with Tailwind CSS build for Vue 3

16 lines (15 loc) 328 B
import { ref as a, watch as f } from "vue"; import { isRtl as m } from "../utils/isRtl.js"; function i(l, r) { const t = a(r === "rtl"); return f( [l, () => r], ([u, e]) => { u && (!e || e === "auto" ? t.value = m(u) : t.value = e === "rtl"); }, { immediate: !0 } ), t; } export { i as useIsRtl };