All Projects → insin → react-gridforms

insin / react-gridforms

Licence: MIT License
React components for Gridforms form layout

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-gridforms

Uniforms
A React library for building forms from any schema.
Stars: ✭ 1,368 (+4617.24%)
Mutual labels:  forms, react-components
Jafar
🌟!(Just another form application renderer)
Stars: ✭ 107 (+268.97%)
Mutual labels:  forms, react-components
React Workshop
⚒ 🚧 This is a workshop for learning how to build React Applications
Stars: ✭ 114 (+293.1%)
Mutual labels:  forms, react-components
react-recurly
React components for Recurly.js
Stars: ✭ 38 (+31.03%)
Mutual labels:  react-components
tubular-dotnet
Tubular .NET Library
Stars: ✭ 16 (-44.83%)
Mutual labels:  forms
yii2-forms
Forms CRUD - formbuilder, generator code
Stars: ✭ 32 (+10.34%)
Mutual labels:  forms
grav-plugin-form
Grav Form Plugin
Stars: ✭ 48 (+65.52%)
Mutual labels:  forms
ContactEtc
Laraval package to instantly add a customisable contact form to your site.
Stars: ✭ 21 (-27.59%)
Mutual labels:  forms
Xam.Plugin.AutoUpdate
Xamarin Forms plugin that auto updates your Android or UWP sideloaded application.
Stars: ✭ 22 (-24.14%)
Mutual labels:  forms
AltoControls
Custom controls for .Net WinForm
Stars: ✭ 76 (+162.07%)
Mutual labels:  forms
shared-components
A shared React component library for Bandwidth UI projects
Stars: ✭ 19 (-34.48%)
Mutual labels:  react-components
Table-Detection-Extraction
Detect the tables in a form and extract the tables as well as the cells of the tables.
Stars: ✭ 35 (+20.69%)
Mutual labels:  forms
Autofillr
A browser extension that fills registration forms with randomly but consistently generated fake data.
Stars: ✭ 17 (-41.38%)
Mutual labels:  forms
string-replace-to-array
Like Javascript's string.replace, but accepts and returns an array
Stars: ✭ 19 (-34.48%)
Mutual labels:  react-components
components
Embed the power of Webex in your web applications, on your own terms 💪🏼
Stars: ✭ 15 (-48.28%)
Mutual labels:  react-components
react-image-resizer
react-image-resizer is a React component that resizes the image to be nice.
Stars: ✭ 29 (+0%)
Mutual labels:  react-components
bootstrap-show-password-toggle
A show password as text toggle for Bootstrap forms
Stars: ✭ 21 (-27.59%)
Mutual labels:  forms
is-react
Determine if a variable or statement is a React element or component
Stars: ✭ 29 (+0%)
Mutual labels:  react-components
laravel-crud-forms
Create CRUD Forms for Laravel Models.
Stars: ✭ 38 (+31.03%)
Mutual labels:  forms
react-native-snippet
React Native, ReactJs, Redux, ES7 Snippet
Stars: ✭ 25 (-13.79%)
Mutual labels:  react-components

react-gridforms

Travis npm package Coveralls

React components for form layout with Gridforms.

Live Demo

Install

Note: Webpack is required in order to use this component from npm.

npm install react-gridforms

Browser bundles are available, which export a global GridForms variable and expect to find a global React variable to work with.

Usage

var GridForms = require('react-gridforms')
// or
var {GridForm, Fieldset, Row, Field} = require('react-gridforms')
// or
import {GridForm, Fieldset, Row, Field} from 'react-gridforms'

Nest <Fieldset>, <Row> and <Field> components under a <GridForm> as necessary, using a span prop to control the relative size of each field.

<GridForm>
  <Fieldset legend="Add to inventory">
    <Row>
      <Field span={3}>
        <label>Product Name</label>
        <input type="text" autoFocus/>
      </Field>
      <Field>
        <label>Tags</label>
        <input type="text"/>
      </Field>
    </Row>
  </Fieldset>
</GridForm>

Row spans will be calculated based on their Fields, so you only have to specify span props for fields which need more than the default of 1.

API

All components will pass any props not documented below to the container element they render.

GridForm component

Renders a <form> with a .grid-form class by default.

Prop Default Description
className An additional class name for the element rendered by the component
component 'div' The container component to be rendered - can be a tag name or a custom React component
custom false Flag to indicate a custom build of Gridforms is being used - when true the default .grid-form class will not be used, only the provided className

Fieldset component

Renders a <fieldset> with a <legend>.

Prop Description
legend Contents for the <legend>, which will only be rendered when a legend prop is provided

Row component

Renders a <div> and calculates a GridForms data-row-span attribute based on the span props of its Field component children.

Field component

Container for an input field.

Prop Default Description
span 1 Relative size of the field compared to others in the same Row - can be expressed as a Number or a String

MIT Licensed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].