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.

28 lines (26 loc) 796 B
'use client'; import * as React from 'react'; import { useRenderElement } from "../../internals/useRenderElement.js"; /** * 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) */ export const ComboboxIcon = /*#__PURE__*/React.forwardRef(function ComboboxIcon(componentProps, forwardedRef) { const { className, render, style, ...elementProps } = componentProps; const element = useRenderElement('span', componentProps, { ref: forwardedRef, props: [{ 'aria-hidden': true, children: '▼' }, elementProps] }); return element; }); if (process.env.NODE_ENV !== "production") ComboboxIcon.displayName = "ComboboxIcon";