UNPKG

@actinc/dls

Version:

Design Language System (DLS) for ACT & Encoura front-end projects.

32 lines 1.02 kB
/** * Copyright (c) ACT, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @prettier */ import { FormControlLabelProps, FormControlProps, SwitchProps } from '@mui/material'; import { ReactElement } from 'react'; export type FormSwitchProps = SwitchProps & { /** * Unique ID for the input. This is required */ id: string; label: string; value?: boolean; fullWidth?: boolean; formControlProps?: FormControlProps; labelProps?: FormControlLabelProps; }; export declare function FormSwitch({ labelProps, id, label, value, fullWidth, formControlProps, ...formSwitchProps }: FormSwitchProps): ReactElement<FormSwitchProps>; export declare namespace FormSwitch { var defaultProps: { formControlProps: undefined; fullWidth: undefined; labelProps: undefined; value: undefined; }; } export default FormSwitch; //# sourceMappingURL=index.d.ts.map