UNPKG

@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.

33 lines (32 loc) 1.06 kB
"use strict"; 'use client'; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComboboxIcon = void 0; var React = _interopRequireWildcard(require("react")); var _useRenderElement = require("../../internals/useRenderElement"); /** * An icon that indicates that the trigger button opens the popup. * Renders a `<span>` element. * * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox) */ const ComboboxIcon = exports.ComboboxIcon = /*#__PURE__*/React.forwardRef(function ComboboxIcon(componentProps, forwardedRef) { const { className, render, style, ...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") ComboboxIcon.displayName = "ComboboxIcon";