Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 1 | <template> |
| 2 | <div> |
| 3 | <h3 class="h4">Enabled</h3> |
| 4 | <b-button variant="primary">Primary</b-button> |
| 5 | <b-button variant="primary"> |
| 6 | <icon-add /> |
| 7 | <span>Primary with icon</span> |
| 8 | </b-button> |
| 9 | <b-button variant="secondary">Secondary</b-button> |
| 10 | <b-button variant="danger">Danger</b-button> |
| 11 | <b-button variant="link">Link Button</b-button> |
| 12 | <b-button variant="link"> |
| 13 | <icon-add /> |
| 14 | <span>Link Button</span> |
| 15 | </b-button> |
Derick Montague | f364d0e | 2020-10-09 12:11:39 -0500 | [diff] [blame] | 16 | <b-button variant="link"> |
| 17 | <icon-trashcan /> |
| 18 | <span class="sr-only">Delete</span> |
| 19 | </b-button> |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 20 | |
| 21 | <h3 class="h4">Disabled</h3> |
| 22 | <b-button disabled variant="primary">Primary</b-button> |
| 23 | <b-button disabled variant="primary"> |
| 24 | <icon-add /> |
| 25 | <span>Primary with icon</span> |
| 26 | </b-button> |
| 27 | <b-button disabled variant="secondary">Secondary</b-button> |
| 28 | <b-button disabled variant="danger">Danger</b-button> |
| 29 | <b-button disabled variant="link">Link Button</b-button> |
| 30 | <b-button disabled variant="link"> |
| 31 | <icon-add /> |
| 32 | <span>Link Button</span> |
| 33 | </b-button> |
Derick Montague | f364d0e | 2020-10-09 12:11:39 -0500 | [diff] [blame] | 34 | <b-button disabled variant="link"> |
| 35 | <icon-trashcan /> |
| 36 | <span class="sr-only">Delete</span> |
| 37 | </b-button> |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 38 | </div> |
| 39 | </template> |
| 40 | |
| 41 | <script> |
| 42 | import IconAdd from '@carbon/icons-vue/es/add--alt/20'; |
Derick Montague | f364d0e | 2020-10-09 12:11:39 -0500 | [diff] [blame] | 43 | import IconTrashcan from '@carbon/icons-vue/es/trash-can/20'; |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 44 | import IconArrowRight from '@carbon/icons-vue/es/arrow--right/16'; |
| 45 | export default { |
| 46 | name: 'BmcButtons', |
Derick Montague | f364d0e | 2020-10-09 12:11:39 -0500 | [diff] [blame] | 47 | components: { IconAdd, IconArrowRight, IconTrashcan } |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 48 | } |
| 49 | </script> |
| 50 | <style scoped> |
| 51 | button { |
| 52 | margin-bottom: 1rem; |
Derick Montague | 3f6710a | 2020-03-04 00:59:47 -0600 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | h3 { |
| 56 | margin: .5rem 0 1rem; |
| 57 | } |
| 58 | </style> |