Giter Site home page Giter Site logo

boltinfluence's Introduction

BoltInfluence

What is Boltinfluener

BlotInfluencer is a website that purpose is to connect agencies and influencers in the same platform.

Stack

The using stack is: Nodejs, ExpressJs, NextJs, Material-ui

Form Generator

The form generator enable you to generate html form with grid disposition depending of fields properties.

<FormGenerator
	fields={fields}
	state={state}
	errors={errors}
	settings={settings}
	onChange={onChange}
/>
Property Type Description
fields array An array of Object containing the form elements types.
state object An object which store the form elements values
errors? array List of errors base on the names of fields
settings? object An object for the form settings
onChange? function Event to call on elements update

Form Generator props

Fields

Property Type Description
label? name The form element helptext
name string The name of the form element. The name is the key that will be use to set the form element.
type string The type of form element to generate
required? boolean (default false) Sets whether the form element is required
dimension? object The material-ui grid dimension E.g: {xs: 12, ms: 6}
props? object The props to pass to the form element

Settings

Property Type Description
showLabel? boolean (default false) Determines if we need to display form elements labels
labelPostion? string Position of label e.g('top | left'). Combine value to put the label on top left position
unableUnderline boolean (default false) Determines the material ui form elements should be underline
unableboxShadow boolean (default false) Determines the material ui form elements bordered with box-shadow

Form elements

TextField, Select, Wysiwyg, Img, Radio, Checkbox, ColorPicker, Upload

TextField

Property Type Description
name string The name of the form element.
label? string The label of the form element.
type string The type of the form element (input, textarea, email, password, number).
value any The value of the form element.
error boolean (default false) Determinate if there is an error in the form element
onChange function Event to call on element update
dimension? object The material-ui grid dimension E.g: {xs: 12, ms: 6}
showLabel? boolean (default false) Show the label aside
disableUnderline? boolean (default false) Disable material ui default form element underline
elemProps? object The props to pass to the form element

Select

Property Type Description
name string The name of the form element.
label? string The label of the form element.
type string The type of the form element (select, select-icon, email, password, number).
value any The value of the form element.
error boolean (default false) Determinate if there is an error in the form element
multiple? boolean (default false) Activate multiple selection
onChange function Event to call on element update
dimension? object The material-ui grid dimension E.g: {xs: 12, ms: 6}
showLabel? boolean (default false) Show the label aside
disableUnderline? boolean (default false) Disable material ui default form element underline

Wysiwyg

Property Type Description
name string The name of the form element.
value string The label of the form element.
error boolean (default false) Determinate if there is an error in the form element
onChange function Event to call on element update
showLabel? boolean (default false) Show the label aside
label? string The label of the form element.
dimension? object The material-ui grid dimension E.g: {xs: 12, ms: 6}

Img

Radio

Checkbox

ColorPicker

Upload

Property Type Description
name string The name of the form element.
value? Img The default image to display
error boolean (default false) Determinate if there is an error in the form element
onChange function Event to call on element update
showLabel? boolean (default false) Show the label aside
label? string The label of the form element.
dimension? object The material-ui grid dimension E.g: {xs: 12, ms: 6}

Packages

boltinfluence's People

Contributors

kacoulib avatar babak0t0 avatar dorminnoodles avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar Pascal Giammelluca avatar Marcus avatar

boltinfluence's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.