UNPKG

@iimm/formily-mui

Version:

form field components based on @mui/material and @formily/react

17 lines (16 loc) 969 B
import type { SxProps, ToggleButtonGroupProps as MuiToggleButtonGroupProps } from "@mui/material"; import { type FormItemBaseProps, type FormItemExtraProps } from "../../layout"; import type { FieldBaseProps, IFieldPropOptions, RefreshOptionsProps } from "../../types"; import "../../styles/refresh.scss"; export declare const ToggleButtonGroupBase: (props: ToggleButtonGroupBaseProps) => import("react/jsx-runtime").JSX.Element; export interface ToggleButtonGroupBaseProps<V = any> extends FieldBaseProps<V | V[]>, Omit<MuiToggleButtonGroupProps, "value" | "onChange" | "defaultValue">, Omit<FormItemBaseProps, "className" | "style" | "prefixCls">, FormItemExtraProps, RefreshOptionsProps { options?: IFieldPropOptions; minCount?: number; maxCount?: number; layout?: "horizontal" | "vertical"; itemSx?: SxProps; itemFullWidth?: boolean; itemWidth?: number | string; itemMinWidth?: number | string; itemMaxWidth?: number | string; }