@bund-x/core
Master Components Core Library
runkit - jsconsole - bundlephobia - unpkg - jsdeliver - openbase - network
Install
npm install --save @bund-x/core
Usage
import React, { Component } from 'react'
import Button from '@bund-x/core/Button'
class App extends Component {
render() {
return (
<Button
color="primary" // 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark'
shape="round" // 'round', 'square'
variant="solid" // 'solid', 'outline', 'text', 'contained'
href="/path/to/route"
size="md" // 'xs', 'sm', 'md', 'lg', 'xl'
type="submit" // 'button', 'reset', 'submit'
startIcon={<i className="fa fa-home" />}
endIcon={<i className="fa fa-home" />}>
children
</Button>
)
}
}
export default App
License
MIT © bund-xyz