fix(striker-ui): expose form control props in SelectWithLabel

main
Tsu-ba-me 2 years ago committed by digimer
parent d5743f81c6
commit a62aa8de64
  1. 3
      striker-ui/components/SelectWithLabel.tsx
  2. 1
      striker-ui/types/SelectWithLabel.d.ts

@ -17,6 +17,7 @@ const SelectWithLabel: FC<SelectWithLabelProps> = ({
selectItems, selectItems,
checkItem, checkItem,
disableItem, disableItem,
formControlProps,
hideItem, hideItem,
inputLabelProps = {}, inputLabelProps = {},
isReadOnly = false, isReadOnly = false,
@ -92,7 +93,7 @@ const SelectWithLabel: FC<SelectWithLabelProps> = ({
); );
return ( return (
<MUIFormControl> <MUIFormControl fullWidth {...formControlProps}>
{labelElement} {labelElement}
<Select <Select
id={id} id={id}

@ -11,6 +11,7 @@ type OperateSelectItemFunction = (value: string) => boolean;
type SelectWithLabelOptionalProps = { type SelectWithLabelOptionalProps = {
checkItem?: OperateSelectItemFunction; checkItem?: OperateSelectItemFunction;
disableItem?: OperateSelectItemFunction; disableItem?: OperateSelectItemFunction;
formControlProps?: import('@mui/material').FormControlProps;
hideItem?: OperateSelectItemFunction; hideItem?: OperateSelectItemFunction;
isCheckableItems?: boolean; isCheckableItems?: boolean;
isReadOnly?: boolean; isReadOnly?: boolean;

Loading…
Cancel
Save