mithril-materialized
Version:
A materialize library for mithril.
24 lines (23 loc) • 962 B
TypeScript
import { FactoryComponent, Component, Attributes } from 'mithril';
export declare const Mandatory: Component;
export interface LabelAttrs extends Attributes {
/** Optional title/label */
label?: string;
/** Optional ID */
id?: string;
/** If true, add a mandatory '*' after the label */
isMandatory?: boolean;
/** Add the active class to the label */
isActive?: boolean | string;
/** Determines the initial value of its active state, only used during oncreate */
initialValue?: boolean;
}
/** Simple label element, used for most components. */
export declare const Label: FactoryComponent<LabelAttrs>;
export interface HelperTextOptions extends Attributes {
helperText?: string;
dataError?: string;
dataSuccess?: string;
}
/** Create a helper text, often used for displaying a small help text. May be replaced by the validation message. */
export declare const HelperText: FactoryComponent<HelperTextOptions>;