Giter Club home page Giter Club logo

bloomer-extensions's Introduction

bloomer-extensions

React components for bulma-extensions.

THIS IS A WORK-IN-PROGRESS

Installing

Remember that this is a work-in-progress and therefore future changes are impossible. We do follow Semantic Versioning, which allows you to identify whether a change is breaking or not. But bugs are also possible, therefore, using this library in production is not recommended, yet, and shall be done under your risk. PRs are always welcome.

npm i bloomer-extensions

TO-DO

  • Proper testing
  • Documentation and examples
  • Carousel
  • CheckRadio
  • Divider
  • IconPicker
  • PageLoader
  • PricingTable
  • QuickView
  • Ribbon
  • Slider
  • Steps
  • TagsInput
  • Timeline
  • ToolTip

Usage

As stated above, proper documentation is yet in the TO-DO list, and using this library in production is not recommended yet. But if you want to try it yourself or even help with PRs, here are a few examples:

import {  Divider,
          PageLoader,
          ToolTip,
          Badge,
          CheckRadio,
          Slider,
          CheckSwitch,
          QuickView, QuickViewHeader, QuickViewBody, QuickViewBlock, QuickViewFooter,
          Steps, StepItem, StepMarker, StepDetails, StepTitle,
          Timeline, TimelineHeader, TimelineItem, TimelineMarker, TimelineContent
  } from 'bloomer-extensions'

Divider

<Divider />
<Divider isVertical />
<Divider content="HI" />

PageLoader

<PageLoader isActive>
	Test
</PageLoader>

ToolTip

<ToolTip text="Hey">Test</ToolTip>

Badge

<Badge text="8">
	<button class="button">Test</button>
</Badge>

CheckRadio

<CheckRadio id="test" checked={this.state.checkradioChecked} onClick={() => this.setState({ checkradioChecked: !this.state.checkradioChecked })}>Click me</Checkradio>

<CheckRadio type="radio" name="myGroup" id="opt1" value="1" checked>Option 1</Checkradio>

<CheckRadio type="radio" name="myGroup" id="opt2" value="2">Option 2</Checkradio>

Slider

<Slider value={this.state.sliderValue} onChange={(e) => this.setState({ sliderValue: e.target.value })} />
<p>{ this.state.sliderValue || 50 }</p>

CheckSwitch

<CheckSwitch checked={this.state.checkswitchChecked} onClick={() => this.setState({ checkswitchChecked: !this.state.checkswitchChecked })}>
	Check me
</CheckSwitch>

QuickView

<QuickView isActive={this.state.quickview}>
	<QuickViewHeader>
	  Title
	  <Delete onClick={() => this.setState({ quickview: false })} />
	</QuickViewHeader>

	<QuickViewBody>
	  <QuickViewBlock>
	    Hello, world
	  </QuickViewBlock>
	</QuickViewBody>

	<QuickViewFooter>
	  Footer
	</QuickViewFooter>
</QuickView>

Steps

  <Steps isSize='large'>
    <StepItem isCompleted isColor='info'>
      <StepMarker>
        ✓
      </StepMarker>
      <StepDetails>
        <StepTitle>Step 1</StepTitle>
        <p>Steps' first step</p>
      </StepDetails>
    </StepItem>

    <StepItem isActive>
      <StepMarker>
        ✓
      </StepMarker>
      <StepDetails>
        <StepTitle>Step 2</StepTitle>
        <p>Steps' second step</p>
      </StepDetails>
    </StepItem>

    <StepItem>
      <StepMarker>
        ✓
      </StepMarker>
      <StepDetails>
        <StepTitle>Step 3</StepTitle>
        <p>Steps' third step</p>
      </StepDetails>
    </StepItem>

    <StepItem>
      <StepMarker>
        ✓
      </StepMarker>
      <StepDetails>
        <StepTitle>Step 4</StepTitle>
        <p>Steps' final step</p>
      </StepDetails>
    </StepItem>

  </Steps>

Timeline

  <Timeline>

    <TimelineHeader>
      <Tag isSize='medium' isColor='primary'>Start</Tag>
    </TimelineHeader>

    <TimelineItem>
      <TimelineMarker />
      <TimelineContent>
        <p class="heading">January 2016</p>
        <p>Timeline content</p>
      </TimelineContent>
    </TimelineItem>

    <TimelineItem>
      <TimelineMarker isColor='info' isSize='medium' />
      <TimelineContent>
        <p class="heading">January 2017</p>
        <p>Timeline content</p>
      </TimelineContent>
    </TimelineItem>

    <TimelineItem>
      <TimelineMarker isColor='info' isSize='medium' isIcon>
        ✓
       </TimelineMarker>
      <TimelineContent>
        <p class="heading">January 2017</p>
        <p>Timeline content</p>
      </TimelineContent>
    </TimelineItem>

  </Timeline>

License

MIT.

bloomer-extensions's People

Contributors

jesobreira avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.