@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.
26 lines (24 loc) • 716 B
JavaScript
export const TYPEAHEAD_RESET_MS = 500;
export const PATIENT_CLICK_THRESHOLD = 500;
export const DISABLED_TRANSITIONS_STYLE = {
style: {
transition: 'none'
}
};
export const EMPTY_OBJECT = {};
export const EMPTY_ARRAY = [];
export const CLICK_TRIGGER_IDENTIFIER = 'data-base-ui-click-trigger';
/**
* Used for dropdowns that usually strictly prefer top/bottom placements and
* use `var(--available-height)` to limit their height.
*/
export const DROPDOWN_COLLISION_AVOIDANCE = {
fallbackAxisSide: 'none'
};
/**
* Used by regular popups that usually aren't scrollable and are allowed to
* freely flip to any axis of placement.
*/
export const POPUP_COLLISION_AVOIDANCE = {
fallbackAxisSide: 'end'
};