UNPKG

@oslokommune/punkt-react

Version:

React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo

22 lines (21 loc) 783 B
import { InputHTMLAttributes } from 'react'; interface InputProps extends InputHTMLAttributes<HTMLInputElement> { /** The input's label */ label?: string; /** The input's id */ id: string; } /** * Input component * @param {string} label - Label for the input * @param {string} id - Id for the input * @param {string} validationMessage - Validation message for the input * @param {InputHTMLAttributes<HTMLInputElement>} props - Other props to pass to the input * @returns {ReactElement} - React element * * @example * <Input label="First name" id="firstName" validationMessage="First name is required" /> * */ export declare const PktInput: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>; export {};