andromeda-buttons
v0.0.4
Published
Andromeda Buttons React UI Components
Downloads
28
Maintainers
Readme
Andromeda Buttons
Buttons are used for actions, like in forms, while textual hyperlinks are used for destinations, or moving from one page to another.
This repository is a module of the full andromeda repository.
Install
This repository is distributed with npm. After installing npm, you can install andromeda-buttons with this command.
$ npm install --save andromeda-buttonsExplorer
Check out how to use Andromeda Buttons with React 16, Webpack 4 and Babel 7 here
NPM
Get the latest andromeda-buttons here
Usage
You can import it like this.
import { MaterialButton } from 'andromeda-buttons'Documentation
Buttons allow users to take actions, and make choices, with a single tap.
Andromeda MaterialButtons
Contained buttons are high-emphasis, distinguished by their use of elevation and fill. They contain actions that are primary to your app.
Contained Default MaterialButton
<MaterialButton
variant="contained"
onClick={handleOnClick}
>
Default
</MaterialButton>Contained Primary MaterialButton
<MaterialButton
variant="contained"
color="primary"
onClick={handleOnClick}
>
Primary
</MaterialButton>Contained Secondary MaterialButton
<MaterialButton
variant="contained"
color="secondary"
onClick={handleOnClick}
>
Secondary
</MaterialButton>