GithubHelp home page GithubHelp logo

trendingtechnology / react-action-bar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mihir0699/react-action-bar

0.0 1.0 0.0 3.14 MB

react-action-bar allows you to simplify form submission and data updation with just a few lines of code.

Home Page: https://npmjs.com/package/react-action-bar

HTML 36.80% CSS 25.98% JavaScript 37.23%

react-action-bar's Introduction

react-action-bar

PRs Welcome Build passing Open Source Love License Made with Love in India

Demo

enter image description here

🎉 react-action-bar allows you to simplify form submission and data updation with just a few lines of code.

Installation :

$ npm install react-action-bar
$ yarn add react-action-bar

Features

  • No need to scroll up or down to save the form or update data.
  • Fully customisable.
  • Very light weight (~30kb)
  • Discard action button.

Code example:

  import React from 'react';
  import ActionBar from 'react-action-bar';

  function App(){
    return (
      <div>
       <ActionBar
		isVisible={visible}
		primaryAction={handleSave}
		discardAction={handleDiscard}
		/>
      </div>
);

}

Props

Prop Description Type Required Default
isVisible accepts a boolean to evaluate whether to show action bar Boolean true -
primaryAction accepts a function to execute when primary action button is clicked function true -
discardAction accepts a function to execute when discard action button is clicked function true -
message message to display on the action bar function true Unsaved changes
backgroundColor background color of the action bar string false #000
primaryColor primary color of the action bar string false #008060
primaryTitle title of the primary action button string false Save
discardTitle title of the discard action button string false Discard

Contribute

Show your ❤️ and support by giving a ⭐. Any suggestions are welcome!

forthebadge forthebadge Buy Me A Coffee

react-action-bar's People

Watchers

 avatar

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.