-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,56 @@ | ||
# vue-button | ||
Buttons for Vue. | ||
Button component for Vue 2. | ||
|
||
## Installation | ||
|
||
npm install @nylira/vue-button | ||
|
||
## Usage | ||
|
||
<template> | ||
<btn date="February 28, 2017"></btn> | ||
</template> | ||
|
||
<script> | ||
import Btn from '@nylira/vue-button' | ||
export default { | ||
components: { | ||
Btn | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
.ni-btn-wrapper { | ||
display: inline-block; | ||
} | ||
.ni-btn { | ||
background: #f00; | ||
} | ||
</style> | ||
|
||
## Props | ||
|
||
value="" | ||
// The label of the button | ||
// Options: Any valid string" | ||
|
||
icon="" | ||
// If you're using FontAwesome, places an icon to the left of the label | ||
// Options: Check http://fontawesome.io/icons | ||
|
||
icon-pos="" | ||
// Move the icon to the right side instead of the left | ||
// Options: "right" | ||
|
||
size="" | ||
// Chanage the size of the button | ||
// Options: "lg", "sm" | ||
|
||
theme="tendermint" | ||
// Adds a custom button theme | ||
// Options: "tendermint", "alpha-black" | ||
|
||
type="button" | ||
// Button type (mainly used for HTML forms) | ||
// Options: "button", "submit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters