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.

23 lines 551 B
import { ProgressRootDataAttributes } from './ProgressRootDataAttributes.js'; export const progressStyleHookMapping = { max: () => null, min: () => null, status(value) { if (value === 'progressing') { return { [ProgressRootDataAttributes.progressing]: '' }; } if (value === 'complete') { return { [ProgressRootDataAttributes.complete]: '' }; } if (value === 'indeterminate') { return { [ProgressRootDataAttributes.indeterminate]: '' }; } return null; } };