@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.
35 lines (34 loc) • 1.54 kB
JavaScript
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import { SelectScrollArrow } from '../scroll-arrow/SelectScrollArrow.js';
import { jsx as _jsx } from "react/jsx-runtime";
/**
* An element that scrolls the select menu down when hovered.
* Renders a `<div>` element.
*
* Documentation: [Base UI Select](https://base-ui.com/react/components/select)
*/
const SelectScrollUpArrow = /*#__PURE__*/React.forwardRef(function SelectScrollUpArrow(props, forwardedRef) {
return /*#__PURE__*/_jsx(SelectScrollArrow, {
...props,
ref: forwardedRef,
direction: "up"
});
});
process.env.NODE_ENV !== "production" ? SelectScrollUpArrow.propTypes /* remove-proptypes */ = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* @ignore
*/
children: PropTypes.node,
/**
* Whether to keep the HTML element in the DOM while the select menu is not scrollable.
* @default false
*/
keepMounted: PropTypes.bool
} : void 0;
export { SelectScrollUpArrow };