UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

9 lines (8 loc) 283 B
import { useTheme, ContentDirection, } from '@workday/canvas-kit-react/common'; export const useRTL = (partialTheme) => { const theme = useTheme(partialTheme); const shouldUseRTL = theme.canvas.direction === ContentDirection.RTL; return { shouldUseRTL, }; };