1.1.0 • Published 3 years ago

mbfjs v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

mbfjs

React.js and Javascript utilities by MBF

NPM JavaScript Style Guide

Install

npm i mbfjs

Usage

import React from 'react'

import { MyComponent } from 'mbfjs'
import 'mbfjs/dist/index.css'

const Example = () => {
  return <MyComponent />
}

Components

LoadingSpinner

PropDescriptionDefault
colorChange the color of the spin in the loading"#0062ff"
titleInsert a text below the spin in the loading

Carousel / Carousel.Slide

const MyCarousel = () => {
  return (
    <Carousel>
      <Carousel.Slide img="image" title="title" text="text" />
      <Carousel.Slide img="image 2" title="title 2" text="text 2" />
    </Carousel.Slide>
  )
}
PropDescriptionComponentdefault
widthSet the carousel widthCarousel"540px"
heightSet the carousel heightCarousel"360px"
transitionSet the css transtion property between slidesCarousel"all .3s"
imgSet the image of a slideCarousel.Slide
titleSet the title of a slideCarousel.Slide
textSet the text of a slideCarousel.Slide
colorSet the color of title & text of a slideCarousel.Slide

notification

notification.push("My message", "success")
// A success colored message will popup for some time on the screen
PropertiesDescriptiondefault
pushDisplay the message on the screen (accept a msg and a type "success", "warning", "error", "info")
placement"top" or "bottom" for the popup placmeent on the screen"top"
durationDuration for the popup to stay in miliseconds3000
customColorDefault popup colorundefined
setPlacementChange placement value
setDurationChange duration value
setCustomColorChange customColor value

License

MIT © MaximeBF2000

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago