chore: parameterise

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-07-29 11:44:33 +02:00
parent 5b7f8fb442
commit 5548e90a09
@@ -134,6 +134,7 @@ export type SelectProps = {
triggerReset?: boolean;
native?: boolean;
disabled?: boolean;
margin?: 'dense' | 'none';
};
/** @public */
@@ -148,6 +149,7 @@ export function SelectComponent(props: SelectProps) {
triggerReset,
native = false,
disabled = false,
margin,
} = props;
const classes = useStyles();
const [value, setValue] = useState<SelectedItems>(
@@ -206,7 +208,7 @@ export function SelectComponent(props: SelectProps) {
data-testid="select"
displayEmpty
multiple={multiple}
margin="dense"
margin={margin}
onChange={handleChange}
onClick={handleClick}
open={isOpen}