UNPKG

@kvaser/canking-api

Version:

CanKing API to communicate with the CanKing service using Node.js.

31 lines (30 loc) 1.24 kB
/** * This module includes a form row UI control, a container component that can be used to * display form controls on one row. * * To be able to use these controls the CanKingDataProvider component must be present in the * component tree above your component. Normally the CanKingDataProvider is added * at the root of the component tree. * * @packageDocumentation */ import React, { JSX } from 'react'; import { ResponsiveStyleValue } from '@mui/system'; /** * Properties of the FormControlRow React component. */ export interface FormControlRowProps { /** Expand this control to use the full width. */ fullWidth?: boolean; /** The spacing between the child controls. */ spacing?: ResponsiveStyleValue<number | string>; /** Alignment of the child controls. */ alignItems?: 'center' | 'end' | 'flex-end' | 'flex-start' | 'self-end' | 'self-start' | 'start' | 'baseline' | 'normal' | 'stretch' | undefined; } /** * Creates a form control row. * @param props - Component properties. * @returns The FormControlRow React component. */ declare function FormControlRow({ children, fullWidth, spacing, alignItems, }: React.PropsWithChildren<FormControlRowProps>): JSX.Element; export default FormControlRow;