1.1.9 • Published 4 years ago
super-lib-reactjs v1.1.9
Super-lib-js
Is a react based component library for many peices of the UI. The library will be extended as we go.
Components
Toggle
Props | Description |
---|---|
onClick | Perform a function when the toggle is clicked |
labelOn | Accepts a string to be displayed when it's on |
labelOff | Accepts a string to be displayed when it's off |
disabled | Boolean {true or false} that indicates if it's disabled or not |
bgColor | set the background color |
Carousel
Props | Description |
---|---|
images | Array of images with src and title propreties |
auto | Boolean {true or false} to set auto swipe |
Example
import React from 'react';
import {Toggle} from 'super-lib-reactjs';
import {Carousel} from 'super-lib-reactjs';
const App = () =>{
return(
<div>
<Toggle />
<Carousel/>
</div>
)
}