@paperbits/forms
Version:
Paperbits components for form builder.
48 lines (39 loc) • 827 B
text/typescript
import { Contract } from "@paperbits/common";
import { LocalStyles } from "@paperbits/common/styles";
/**
* URL input data contract.
*/
export interface UrlInputContract extends Contract {
/**
* Label on the url input.
*/
label: string;
/**
* Placeholder.
*/
placeholder: string;
/**
* Field name. Used in form submission.
*/
name: string;
/**
* Initial value.
*/
value: string;
/**
* Indicates that field is readonly.
*/
readonly: boolean;
/**
* Indicates that field is required.
*/
required: boolean;
/**
* Maximum allowed number of characters.
*/
maxLength: number;
/**
* URL input local styles.
*/
styles?: LocalStyles;
}