laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
39 lines (27 loc) • 862 B
Markdown
# AppMultipleSelectDropdown
> Deprecated: Use AppSelect instead.
## Overview
Legacy multi-select dropdown component. This component is deprecated in favor of `AppSelect` which provides better accessibility, features, and API consistency.
## Replacement
Use `AppSelect` with `multiple` and an array of values.
```tsx
import { AppSelect } from "laif-ds";
export function Replacement() {
return (
<AppSelect
multiple
options={[
{ value: "a", label: "Option A" },
{ value: "b", label: "Option B" },
]}
value={["a"]}
onValueChange={(v) => console.log(v)}
/>
);
}
```
## Notes
- The old component supported search and maxSelectedItems, but `AppSelect` now provides these features with a more robust API and better UX.
- Plan migration to `AppSelect` and remove this component from new code.