@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 (24 loc) • 887 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from '../../utils/types.js';
/**
* A text label of the currently selected item.
* Renders a `<span>` element.
*
* Documentation: [Base UI Select](https://base-ui.com/react/components/select)
*/
declare const SelectValue: React.ForwardRefExoticComponent<SelectValue.Props & React.RefAttributes<HTMLSpanElement>>;
declare namespace SelectValue {
interface Props extends Omit<BaseUIComponentProps<'span', State>, 'children'> {
children?: null | ((value: string) => React.ReactNode);
/**
* A placeholder value to display when no value is selected.
*
* You can use this prop to pre-render the displayed text
* during SSR in order to avoid the hydration flash.
*/
placeholder?: string;
}
interface State {
}
}
export { SelectValue };