UNPKG

@mui/base

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.

10 lines 337 B
/** * If `componentProps` is a function, calls it with the provided `ownerState`. * Otherwise, just returns `componentProps`. */ export function resolveComponentProps(componentProps, ownerState, slotState) { if (typeof componentProps === 'function') { return componentProps(ownerState, slotState); } return componentProps; }