vu-style-guide2 v0.1.29
This project was bootstrapped with Create React App.
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
npm run storybook
Runs storybook for development
npm test
Launches the test runner in the interactive watch mode. See the section about running tests for more information.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
See the section about deployment for more information.
To Publish updates to NPM
- Update package.json to the next version
- run
npm run compile
- run
npm publish
- update any project that uses this package
USAGE
run npm install vu-style-guide2
Button
Button accepts the following parameters:
type(primary, secondary, tertiary, disabled, danger),
size(default and small), label, icon.
Note: icon currently takes in the secondary argument of a font-awesome icon. ex: fa fa-plus
example: <Button type={'danger'} label={'Delete'} icon={'fa-plus'}/>
Input
Input accepts the following parameters: icon (to show icon inside the input box), value note: by default, if icon is provided, the input box will be wider to accomodate for the icon. If you would like to keep the width the same, add style={{width: 'percent/px', boxSizing: 'border-box'}} to match with the other inputs
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago