1.0.32 • Published 1 year ago

@use-ui/bootstrap3 v1.0.32

Weekly downloads
54
License
MIT
Repository
github
Last release
1 year ago

Collection of React components to build forms using @use-ui/hooks.

Consist of form inputs and several additional components.

Form inputs

  • CheckBox - Check box
  • Input - Text input
  • Select - Select with autocomplete, fetch options from server, multiple selected options
  • Static - Disabled text input
  • TextArea - Text multi line input

Each of the form input components uses FormGroup for its rendering, and accepts FormGroup props.

Input components accept validation constraint as propertes:

<Input
  field={fields.name}
  required
  minLength={10}
/>

Additional components

  • InlineEdit - Supports inline-editing of values. Can use one of the form inputs for entry.
  • ActionResult - Render error or success message.

Typical cases

Default value for Select when loading data from server

FAQ

Why there's on onChange handlers on field elements.

OnChange origins in imperative world with inputs and event listeners. Instead of using onChange on field elements, use useEffect on form data or values.

Default value of \<Select> isn't set

Make sure values of your options have string type. Number and other types won't work:

<Select
  value={currentGroupId}
  topic={services.groups}
  map={group => ({value: "" + group.id, label: group.name})}
/>

API Reference

/api-docs/docs.md

1.0.32

1 year ago

1.0.31

2 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.19

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.23

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago