@mattilsynet/designsystem-svelte
Version:
Design system for Mattilsynet
25 lines (24 loc) • 767 B
TypeScript
import type { AutocompleteType, ErrorDetail, InputModeType } from '../../../ts';
interface Props {
value?: string;
name: string;
label: string;
labelClass?: string;
countCharactersLeftLabel?: string;
countCharactersTooManyLabel?: string;
tooManyCharactersErrorText?: string;
error?: ErrorDetail;
helpText?: string;
textOptional?: string;
showOptionalText?: boolean;
hiddenErrorText?: string;
maxlength?: number;
placeholder?: string;
isRequired?: boolean;
inputmode?: InputModeType;
autocomplete?: AutocompleteType;
inputClass?: string;
}
declare const TextInput: import("svelte").Component<Props, {}, "error" | "value">;
type TextInput = ReturnType<typeof TextInput>;
export default TextInput;