UNPKG

698 BJavaScriptView Raw
1let warnedOnce = false;
2const warn = () => {
3 if (!warnedOnce) {
4 console.error(['Base UI: The MultiSelect component was removed from the library.', '', 'The multi-select functionality is now available in the Select component.', 'Replace <MultiSelect> with <Select multiple /> in your code to remove this error.'].join('\n'));
5 warnedOnce = true;
6 }
7};
8
9/**
10 * The foundation for building custom-styled multi-selection select components.
11 *
12 * @deprecated The multi-select functionality is now available in the Select component. Replace <MultiSelect> with <Select multiple /> in your code.
13 * @ignore - do not document.
14 */
15export default function MultiSelect() {
16 warn();
17 return null;
18}
\No newline at end of file