rynex
Version:
A minimalist TypeScript framework for building reactive web applications with no virtual DOM
72 lines • 1.75 kB
TypeScript
/**
* Rynex Form Helpers
* Form elements and inputs
*/
import { DOMProps, DOMChildren } from '../dom.js';
/**
* Form element
*/
export declare function form(props: DOMProps, ...children: DOMChildren[]): HTMLFormElement;
/**
* Textarea element
*/
export declare function textarea(props: DOMProps, content?: string): HTMLTextAreaElement;
/**
* Select element
*/
export declare function select(props: DOMProps, ...children: DOMChildren[]): HTMLSelectElement;
/**
* Option element
*/
export declare function option(props: DOMProps & {
value: string;
}, ...content: DOMChildren[]): HTMLOptionElement;
/**
* Checkbox input
*/
export declare function checkbox(props: DOMProps & {
checked?: boolean;
}): HTMLInputElement;
/**
* Radio input
*/
export declare function radio(props: DOMProps & {
checked?: boolean;
name?: string;
}): HTMLInputElement;
/**
* Fieldset element
*/
export declare function fieldset(props: DOMProps, ...children: DOMChildren[]): HTMLFieldSetElement;
/**
* Legend element
*/
export declare function legend(props: DOMProps, ...content: DOMChildren[]): HTMLLegendElement;
/**
* Datalist element
*/
export declare function datalist(props: DOMProps & {
id: string;
}, ...children: DOMChildren[]): HTMLDataListElement;
/**
* Meter element
*/
export declare function meter(props: DOMProps & {
value: number;
min?: number;
max?: number;
}): HTMLMeterElement;
/**
* Progress element
*/
export declare function progress(props: DOMProps & {
value?: number;
max?: number;
}): HTMLProgressElement;
/**
* Output element
*/
export declare function output(props: DOMProps & {
htmlFor?: string;
}, ...content: DOMChildren[]): HTMLOutputElement;
//# sourceMappingURL=forms.d.ts.map