From ef46fa914bd4764d2a2ef4c38f6d1f08cfb85e0e Mon Sep 17 00:00:00 2001 From: Priyatham-sai-chand Date: Fri, 9 Feb 2024 15:49:01 -0800 Subject: [PATCH] change package for vue --- src/components/AppButton.vue | 84 ++++++++++++++++++++++++++++++++++++ src/components/sizeMixin.js | 14 ++++++ 2 files changed, 98 insertions(+) create mode 100644 src/components/AppButton.vue create mode 100644 src/components/sizeMixin.js diff --git a/src/components/AppButton.vue b/src/components/AppButton.vue new file mode 100644 index 0000000..22e0bc7 --- /dev/null +++ b/src/components/AppButton.vue @@ -0,0 +1,84 @@ + + + + + +This button is amazing, use it responsibly. + +## Examples + +Orange button: + +```jsx +Push Me +``` + +Ugly button with pink font and blue background: + +```jsx + + Ugly button + +``` + +Button containing custom tags: + +```jsx + + Text with bold + +``` + diff --git a/src/components/sizeMixin.js b/src/components/sizeMixin.js new file mode 100644 index 0000000..476248b --- /dev/null +++ b/src/components/sizeMixin.js @@ -0,0 +1,14 @@ +/** + * @mixin + */ +module.exports = { + props: { + /** + * Set size of the element + */ + size: { + type: String, + default: '14px' + } + } +}