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.

21 lines 519 B
import { ProgressRootDataAttributes } from "./ProgressRootDataAttributes.js"; export const progressStateAttributesMapping = { status(value) { if (value === 'progressing') { return { [ProgressRootDataAttributes.progressing]: '' }; } if (value === 'complete') { return { [ProgressRootDataAttributes.complete]: '' }; } if (value === 'indeterminate') { return { [ProgressRootDataAttributes.indeterminate]: '' }; } return null; } };