Feature/paragraph updates (#257)

* useMergeClasses accepted types updated - to match twMerge

* fwb-paragraph updated to accept user classes

* docs updated to fix missing tailwind classes

* fwb-p documentation updated

* tailwindcss class wrapper props removed

* Update docs/components/typography/p/FwbPExampleCustom.vue

* Update docs/components/typography/p/FwbPExampleCustom.vue

---------

Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com>
This commit is contained in:
Sqrcz
2023-12-18 08:57:06 +01:00
committed by GitHub
parent 77d73abe34
commit 7948a04159
7 changed files with 80 additions and 162 deletions

View File

@@ -1,8 +1,6 @@
<script setup>
import FwbPExample from './typography/p/FwbPExample.vue'
import FwbPExampleAlign from './typography/p/FwbPExampleAlign.vue'
import FwbPExampleCustom from './typography/p/FwbPExampleCustom.vue'
import FwbPExampleWeight from './typography/p/FwbPExampleWeight.vue'
</script>
# Vue Paragraph - Flowbite
@@ -15,7 +13,7 @@ Use this example of a paragraph element to use inside article content or a landi
```vue
<template>
<fwb-p class="mb-2">
<fwb-p>
Track work across the enterprise through an open, collaborative platform.
Link issues across Jira and ingest data from other software development
tools, so your IT support and operations teams have richer contextual
@@ -36,72 +34,42 @@ import { FwbP } from 'flowbite-vue'
<fwb-p-example />
## Weight
Use `weight` prop to set the text-weight.
```vue
<template>
<fwb-p class="mb-2" weight="light">
Track work across the enterprise through an open, collaborative platform.
Link issues across Jira and ingest data from other software development
tools, so your IT support and operations teams have richer contextual
information to rapidly respond to requests, incidents, and changes.
</fwb-p>
<fwb-p weight="bold">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
</template>
<script setup>
import { FwbP } from 'flowbite-vue'
</script>
```
<fwb-p-example-weight />
## Alignment
Use `align` prop to set the text alignment.
```vue
<template>
<fwb-p align="left" class="mb-2">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
<fwb-p align="center" class="mb-2">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
<fwb-p align="right" class="mb-2">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
</template>
<script setup>
import { FwbP } from 'flowbite-vue'
</script>
```
<fwb-p-example-align />
## Custom classes
Use `class` attribute to apply the tailwind classes.
```vue
<template>
<fwb-p class="font-light">
Track work across the enterprise through an open, collaborative platform.
Link issues across Jira and ingest data from other software development
tools, so your IT support and operations teams have richer contextual
information to rapidly respond to requests, incidents, and changes.
</fwb-p>
<fwb-p class="font-bold">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
<fwb-p class="test-left">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
<fwb-p class="test-center">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
<fwb-p class="text-right">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,
eliminate toil, and deploy changes with ease, with a complete
audit trail for every change.
</fwb-p>
<fwb-p class="text-green-600 dark:text-green-400 italic">
Deliver great service experiences fast - without the complexityof
traditional ITSM solutions. Accelerate critical development work,