0.6.5 • Published 3 years ago

@visma/form-ula v0.6.5

Weekly downloads
123
License
ISC
Repository
gitlab
Last release
3 years ago

Form ULA 🏎️

Form ULA form generator.

Example

import FormULA from "@visma/form-ula";
import FIELD from "@visma/form-ula/es/constants/fieldIDs";
import * as ELEMENT from "@visma/form-ula/es/constants/elementTypes";
import * as TYPE from "@visma/form-ula/es/constants/fieldTypes";
import { Button } from "react-bootstrap";

<FormULA
  design={{
    [FIELD.TITLE]: { en: "Feedback", fi: "Palaute" },
    [FIELD.ELEMENTS]: [
      {
        type: ELEMENT.FIELD,
        id: 0
      },
      {
        type: ELEMENT.FIELD,
        id: 1
      }
    ]
  }}
  fields={[
    {
      [FIELD.TYPE]: TYPE.TEXT,
      [FIELD.NAME]: {
        en: "Title",
        fi: "Otsikko"
      },
      _id: 0
    },
    {
      [FIELD.TYPE]: TYPE.TEXTAREA,
      [FIELD.NAME]: {
        en: "Message",
        fi: "Viesti"
      },
      _id: 1
    }
  ]}
  onSubmit={console.log}
>
  <Button type="submit">Submit</Button>
</FormULA>;
0.6.5

3 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2-RC

4 years ago

0.5.16

4 years ago

0.6.2-beta

4 years ago

0.6.1-beta

4 years ago

0.5.15

4 years ago

0.6.0-beta.2

4 years ago

0.6.0-beta.1

4 years ago

0.5.14-beta.11

4 years ago

0.5.14

4 years ago

0.5.14-beta.10

4 years ago

0.5.14-beta.9

4 years ago

0.5.14-beta.6

4 years ago

0.5.14-beta.7

4 years ago

0.5.14-beta.8

4 years ago

0.5.14-beta.5

4 years ago

0.5.14-beta.3

4 years ago

0.5.14-beta.4

4 years ago

0.5.14-beta.2

4 years ago

0.5.14-beta.1

5 years ago

0.5.14-beta.0

5 years ago

0.5.13

5 years ago

0.5.12

5 years ago

1.0.0-alpha.2

5 years ago

1.0.0-alpha.1

5 years ago

0.5.11

5 years ago

1.0.0-alpha.0

5 years ago

0.5.10

5 years ago

0.5.9

5 years ago

0.5.8

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago