@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 (20 loc) • 575 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styleHookMapping = void 0;
var _constants = require("../field/utils/constants");
var _SwitchRootDataAttributes = require("./root/SwitchRootDataAttributes");
const styleHookMapping = exports.styleHookMapping = {
..._constants.fieldValidityMapping,
checked(value) {
if (value) {
return {
[_SwitchRootDataAttributes.SwitchRootDataAttributes.checked]: ''
};
}
return {
[_SwitchRootDataAttributes.SwitchRootDataAttributes.unchecked]: ''
};
}
};
;