UNPKG

@react-md/form

Version:

This package is for creating all the different form input types.

21 lines (20 loc) 830 B
import type { HTMLAttributes } from "react"; export interface ToggleContainerProps extends HTMLAttributes<HTMLDivElement> { /** * Boolean if the input toggle should be rendered as `inline-flex` instead of * `flex`. */ inline?: boolean; /** * Boolean if the label should be stacked above/below the input toggle instead * of being rendered on the same line. */ stacked?: boolean; } /** * The `ToggleContainer` component should generally be used around a * custom `"checkbox"`, `"radio"`, or `"switch"` component to help with * additional styles. This is mostly an internal component so I'm not * sure useful it will be though. */ export declare const ToggleContainer: import("react").ForwardRefExoticComponent<ToggleContainerProps & import("react").RefAttributes<HTMLDivElement>>;