@base-ui/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.
14 lines (13 loc) • 381 B
JavaScript
;
'use client';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDefaultLabelId = getDefaultLabelId;
exports.resolveAriaLabelledBy = resolveAriaLabelledBy;
function getDefaultLabelId(id) {
return id == null ? undefined : `${id}-label`;
}
function resolveAriaLabelledBy(fieldLabelId, localLabelId) {
return fieldLabelId ?? localLabelId;
}