mui-chip-select
Version:
A react component for building selectable MUI Chips
15 lines (14 loc) • 447 B
TypeScript
import React from 'react';
import Chip from '@mui/material/Chip';
type Option = string | {
label: string;
value: string;
};
interface MuiChipSelectProps {
options: Option[];
onChange: (selected: Option[]) => void;
chipProps?: React.ComponentProps<typeof Chip>;
className?: string;
}
declare function MuiChipSelect({ options, onChange, chipProps, className }: MuiChipSelectProps): JSX.Element;
export default MuiChipSelect;