UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

17 lines 326 B
const STARTING_HOOK = { 'data-starting-style': '' }; const ENDING_HOOK = { 'data-ending-style': '' }; export const transitionStatusMapping = { transitionStatus(value) { if (value === 'starting') { return STARTING_HOOK; } if (value === 'ending') { return ENDING_HOOK; } return null; } };