From eb6f4bd33aa5e42b41f4e44f786015a28dffb4ae Mon Sep 17 00:00:00 2001 From: hirakei1203 Date: Sat, 29 Oct 2022 11:22:25 +0900 Subject: [PATCH] prepate progress.md --- .../examples/ProgressColorExample.vue | 15 ++++ .../progress/examples/ProgressExample.vue | 2 +- .../examples/ProgressInsideLabelExample.vue | 6 ++ .../examples/ProgressOutsideLabelExample.vue | 6 ++ .../progress/examples/ProgressSizeExample.vue | 11 +++ docs/components/progress/progress.md | 77 ++++++++++++++++++- src/components/Progress/Progress.vue | 10 ++- .../composables/useProgressClasses.ts | 10 +-- src/components/Progress/types.ts | 3 +- 9 files changed, 125 insertions(+), 15 deletions(-) create mode 100644 docs/components/progress/examples/ProgressColorExample.vue create mode 100644 docs/components/progress/examples/ProgressInsideLabelExample.vue create mode 100644 docs/components/progress/examples/ProgressOutsideLabelExample.vue create mode 100644 docs/components/progress/examples/ProgressSizeExample.vue diff --git a/docs/components/progress/examples/ProgressColorExample.vue b/docs/components/progress/examples/ProgressColorExample.vue new file mode 100644 index 0000000..4015895 --- /dev/null +++ b/docs/components/progress/examples/ProgressColorExample.vue @@ -0,0 +1,15 @@ + + \ No newline at end of file diff --git a/docs/components/progress/examples/ProgressExample.vue b/docs/components/progress/examples/ProgressExample.vue index 62c6704..bd62efb 100644 --- a/docs/components/progress/examples/ProgressExample.vue +++ b/docs/components/progress/examples/ProgressExample.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/docs/components/progress/examples/ProgressOutsideLabelExample.vue b/docs/components/progress/examples/ProgressOutsideLabelExample.vue new file mode 100644 index 0000000..2af7377 --- /dev/null +++ b/docs/components/progress/examples/ProgressOutsideLabelExample.vue @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/docs/components/progress/examples/ProgressSizeExample.vue b/docs/components/progress/examples/ProgressSizeExample.vue new file mode 100644 index 0000000..35f9469 --- /dev/null +++ b/docs/components/progress/examples/ProgressSizeExample.vue @@ -0,0 +1,11 @@ + + \ No newline at end of file diff --git a/docs/components/progress/progress.md b/docs/components/progress/progress.md index 5518699..7ea9b9e 100644 --- a/docs/components/progress/progress.md +++ b/docs/components/progress/progress.md @@ -1,14 +1,22 @@ # Vue Progress Bar Component - Flowbite +## Default + ```vue ``` @@ -17,11 +25,78 @@ import { Progress } from 'flowbite-vue' ## Sizes You can also use different sizes by using various sizing. +```vue + + +``` + + + ## With label inside Here is an example of using a progress bar with the label inside the bar. +```vue + + +``` + + + ## With label outside And this is an example of using a progress bar outside the bar. +```vue + + +``` + + + ## Colors You can also apply color. + +```vue + + +``` + + \ No newline at end of file diff --git a/src/components/Progress/Progress.vue b/src/components/Progress/Progress.vue index 7eabc4c..e8e768f 100644 --- a/src/components/Progress/Progress.vue +++ b/src/components/Progress/Progress.vue @@ -1,4 +1,5 @@