@react-md/form
Version:
This package is for creating all the different form input types.
22 lines (21 loc) • 720 B
TypeScript
/// <reference types="react" />
import type { LabelProps } from "./Label";
export interface FloatingLabelProps extends LabelProps {
/**
* Boolean if the text input or textarea currently have a value.
*/
valued: boolean;
/**
* Boolean if it should use the dense spec.
*/
dense?: boolean;
/**
* Boolean if the label is currently floating over the text field.
*/
floating?: boolean;
}
/**
* This is an extension of the `Label` component that is used with text fields
* and textareas to float above the input area.
*/
export declare const FloatingLabel: import("react").ForwardRefExoticComponent<FloatingLabelProps & import("react").RefAttributes<HTMLLabelElement>>;