@jdl2/form
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.30 • Public • Published

Form

Example

<Form>
    <Form.Header>CloudBees Form</Form.Header>
    <Form.Input>
        {{
            label: 'First Name:',
            name: 'first-name',
            placeholder: 'Enter your first name:',
            htmlFor: 'first-name',
        }}
    </Form.Input>
    <Form.Checkbox>
        {{
            name: 'employee1',
            description: 'are you a CloudBees Employee?',
            value: 'Employee',
        }}
    </Form.Checkbox>
    ...
</Form>
Properties of form parts:
.Input {
    label?: string;
    name?: string;
    placeholder?: string;
    htmlFor?: string;
}

.Checkbox {
    name?: string;
    value?: string;
    description?: React.ReactNode | string;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jdl2/form

Weekly Downloads

2

Version

2.0.0-alpha.30

License

none

Unpacked Size

6.86 kB

Total Files

9

Last publish

Collaborators

  • kzantow