Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@use-ui/bootstrap3

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@use-ui/bootstrap3

- [CheckBox](api-docs/docs.md#checkbox) - Check box - [Input](api-docs/docs.md#input) - Text input - [Select](api-docs/docs.md#select) - Select with autocomplete, fetch options from server, multiple selected options - [Static](api-docs/docs.md#static) - D

  • 1.0.24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
increased by1100%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 14 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc