UNPKG

705 BJavaScriptView Raw
1'use client';
2
3let warnedOnce = false;
4const warn = () => {
5 if (!warnedOnce) {
6 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'));
7 warnedOnce = true;
8 }
9};
10
11/**
12 * The foundation for building custom-styled multi-selection select components.
13 *
14 * @deprecated The multi-select functionality is now available in the Select component. Replace <MultiSelect> with <Select multiple /> in your code.
15 * @ignore - do not document.
16 */
17export function MultiSelect() {
18 warn();
19 return null;
20}
\No newline at end of file