@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.
25 lines (23 loc) • 694 B
JavaScript
'use client';
import * as React from 'react';
import { useRenderElement } from "../../utils/useRenderElement.js";
/**
* An icon that indicates that the trigger button opens the popup.
* Renders a `<span>` element.
*/
export const ComboboxIcon = /*#__PURE__*/React.forwardRef(function ComboboxIcon(componentProps, forwardedRef) {
const {
className,
render,
...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";