@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.
32 lines (31 loc) • 1.03 kB
JavaScript
;
'use client';
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SelectIcon = void 0;
var React = _interopRequireWildcard(require("react"));
var _useRenderElement = require("../../utils/useRenderElement");
/**
* An icon that indicates that the trigger button opens a select menu.
* Renders a `<span>` element.
*
* Documentation: [Base UI Select](https://base-ui.com/react/components/select)
*/
const SelectIcon = exports.SelectIcon = /*#__PURE__*/React.forwardRef(function SelectIcon(componentProps, forwardedRef) {
const {
className,
render,
...elementProps
} = componentProps;
const element = (0, _useRenderElement.useRenderElement)('span', componentProps, {
ref: forwardedRef,
props: [{
'aria-hidden': true,
children: '▼'
}, elementProps]
});
return element;
});
if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";