react-route-button
v1.0.4
Published
A button control built with and for ReactJS.
Maintainers
Readme
React-Route-Button
A Route control built with and for React.
Basically its fully customizable routing buttion using which a user can navigate from one route to another.
Features include:
- Fully customizable route button
- Easy to manage
Installation and usage
The easiest way to use react-route-button is to install it from npm.
import React from 'react';
import RouteButton from 'react-route-button';
class App extends React.Component {
render() {
return (
<RouteButton
textColor="#ffffff"
bgColor="#f39c12"
border="#f39c12"
fa="fa-tachometer"
iconPosition="left"
label="Dashboard"
/>
);
}
}Props
Common props you may want to specify include:
label- Specify the text to display on button eg. Dashboardcolor- Specify the hexadecimal color code for button colorbackground- Specify the hexadecimal color code for button backgroundborder- Specify the hexadecimal color code for button borderborderRadius- "rounded" for round edgesfa- Button with font awesome iconiconPosition- Set IconPosition "left" or "right"
