flowbite-mcp 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -74
- package/build/index.js +20 -36
- package/data/components/accordion.md +39 -53
- package/data/components/alerts.md +27 -44
- package/data/components/avatar.md +20 -33
- package/data/components/badge.md +34 -47
- package/data/components/banner.md +10 -29
- package/data/components/bottom-navigation.md +16 -29
- package/data/components/breadcrumb.md +12 -25
- package/data/components/button-group.md +26 -39
- package/data/components/buttons.md +41 -67
- package/data/components/card.md +34 -47
- package/data/components/carousel.md +25 -39
- package/data/components/chat-bubble.md +36 -50
- package/data/components/clipboard.md +256 -252
- package/data/components/datepicker.md +56 -70
- package/data/components/device-mockups.md +16 -29
- package/data/components/drawer.md +42 -56
- package/data/components/dropdowns.md +66 -80
- package/data/components/footer.md +16 -29
- package/data/components/forms.md +32 -50
- package/data/components/gallery.md +16 -33
- package/data/components/indicators.md +18 -31
- package/data/components/jumbotron.md +12 -25
- package/data/components/kbd.md +14 -27
- package/data/components/list-group.md +14 -27
- package/data/components/mega-menu.md +10 -24
- package/data/components/modal.md +37 -51
- package/data/components/navbar.md +41 -55
- package/data/components/pagination.md +22 -35
- package/data/components/popover.md +36 -51
- package/data/components/progress.md +10 -23
- package/data/components/qr-code.md +41 -133
- package/data/components/rating.md +16 -29
- package/data/components/sidebar.md +15 -30
- package/data/components/skeleton.md +16 -29
- package/data/components/speed-dial.md +40 -55
- package/data/components/spinner.md +14 -27
- package/data/components/stepper.md +14 -27
- package/data/components/tables.md +45 -64
- package/data/components/tabs.md +30 -45
- package/data/components/timeline.md +10 -23
- package/data/components/toast.md +25 -39
- package/data/components/tooltips.md +24 -39
- package/data/components/typography.md +22 -35
- package/data/components/video.md +14 -27
- package/data/forms/checkbox.md +27 -43
- package/data/forms/file-input.md +12 -26
- package/data/forms/floating-label.md +12 -25
- package/data/forms/input-field.md +17 -32
- package/data/forms/number-input.md +83 -93
- package/data/forms/phone-input.md +42 -54
- package/data/forms/radio.md +23 -39
- package/data/forms/range.md +12 -26
- package/data/forms/search-input.md +14 -31
- package/data/forms/select.md +15 -30
- package/data/forms/textarea.md +8 -21
- package/data/forms/timepicker.md +30 -42
- package/data/forms/toggle.md +18 -31
- package/data/plugins/charts.md +542 -526
- package/data/plugins/datatables.md +285 -286
- package/data/plugins/wysiwyg.md +658 -650
- package/data/quickstart.md +24 -24
- package/data/typography/blockquote.md +24 -37
- package/data/typography/headings.md +30 -43
- package/data/typography/hr.md +10 -23
- package/data/typography/images.md +32 -45
- package/data/typography/links.md +16 -29
- package/data/typography/lists.md +22 -35
- package/data/typography/paragraphs.md +30 -43
- package/data/typography/text.md +42 -55
- package/package.json +1 -1
package/data/quickstart.md
CHANGED
|
@@ -8,13 +8,13 @@ Make sure that you have <a href="https://nodejs.org/en/" rel="nofollow" target="
|
|
|
8
8
|
|
|
9
9
|
1. Install Flowbite as a dependency using NPM by running the following command:
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
```bash
|
|
12
12
|
npm install flowbite
|
|
13
|
-
|
|
13
|
+
```
|
|
14
14
|
|
|
15
15
|
2. Import the default theme variables from Flowbite inside your main `input.css` CSS file:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```css
|
|
18
18
|
/* choose one of the following */
|
|
19
19
|
|
|
20
20
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
|
@@ -38,25 +38,25 @@ npm install flowbite
|
|
|
38
38
|
/* MONO THEME
|
|
39
39
|
@import "flowbite/src/themes/mono";
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
```
|
|
42
42
|
|
|
43
43
|
3. Import the Flowbite plugin file in your CSS:
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
```css
|
|
46
46
|
@plugin "flowbite/plugin";
|
|
47
|
-
|
|
47
|
+
```
|
|
48
48
|
|
|
49
49
|
4. Configure the source files of Flowbite in your CSS:
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
```css
|
|
52
52
|
@source "../node_modules/flowbite";
|
|
53
|
-
|
|
53
|
+
```
|
|
54
54
|
|
|
55
55
|
5. Include the JavaScript code that powers the interactive elements before the end of your `<body>` tag:
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
```html
|
|
58
58
|
<script src="../path/to/flowbite/dist/flowbite.min.js"></script>
|
|
59
|
-
|
|
59
|
+
```
|
|
60
60
|
|
|
61
61
|
Learn more about the Flowbite JavaScript API and functionalities in the [JavaScript section](https://flowbite.com/docs/getting-started/javascript/).
|
|
62
62
|
|
|
@@ -68,15 +68,15 @@ The quickest way to get started working with Flowbite is to include the CSS and
|
|
|
68
68
|
|
|
69
69
|
Require the following minified stylesheet inside the `head` tag:
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
<link href="https://cdn.jsdelivr.net/npm/flowbite
|
|
73
|
-
|
|
71
|
+
```html
|
|
72
|
+
<link href="https://cdn.jsdelivr.net/npm/flowbite/dist/flowbite.min.css" rel="stylesheet" />
|
|
73
|
+
```
|
|
74
74
|
|
|
75
75
|
And include the following JavaScript file before the end of the `body` element:
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
<script src="https://cdn.jsdelivr.net/npm/flowbite
|
|
79
|
-
|
|
77
|
+
```html
|
|
78
|
+
<script src="https://cdn.jsdelivr.net/npm/flowbite/dist/flowbite.min.js"></script>
|
|
79
|
+
```
|
|
80
80
|
|
|
81
81
|
Please remember that the best way to work with Tailwind CSS and Flowbite is by purging the CSS classes.
|
|
82
82
|
|
|
@@ -86,9 +86,9 @@ One of the most popular way of using Flowbite is to include the bundled Javascri
|
|
|
86
86
|
|
|
87
87
|
You can directly import the main JavaScript file inside your bundled `app-bundle.js` file like this:
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
```javascript
|
|
90
90
|
import 'flowbite';
|
|
91
|
-
|
|
91
|
+
```
|
|
92
92
|
|
|
93
93
|
This file has access to all of the components and it automatically applies event listeners to the data attributes.
|
|
94
94
|
|
|
@@ -102,7 +102,7 @@ For example, to set up a modal component all you need to do is use `data-modal-t
|
|
|
102
102
|
|
|
103
103
|
You can also use the init functions to set up the event listeners yourself. Here's an example how you can do it with Vue or Nuxt:
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
```javascript
|
|
106
106
|
<script setup>
|
|
107
107
|
import { onMounted } from 'vue'
|
|
108
108
|
import { initFlowbite } from 'flowbite'
|
|
@@ -116,7 +116,7 @@ onMounted(() => {
|
|
|
116
116
|
<template>
|
|
117
117
|
// Modal HTML markup with data attributes from Flowbite
|
|
118
118
|
</template>
|
|
119
|
-
|
|
119
|
+
```
|
|
120
120
|
|
|
121
121
|
The `initFlowbite` function sets up all of the init functions for dropdowns, modals, navbars, tooltips and so on to hook onto the data attributes. Alternatively, you can also initialise each component category class separately with `initDropdowns` or `initModals`.
|
|
122
122
|
|
|
@@ -128,7 +128,7 @@ Flowbite also offers an API for using the components programmatically and it sup
|
|
|
128
128
|
|
|
129
129
|
Here's an example how you can import and create a new Modal component inside JavaScript:
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
```javascript
|
|
132
132
|
import { Modal } from 'flowbite'
|
|
133
133
|
|
|
134
134
|
const $modalElement = document.querySelector('#modalEl');
|
|
@@ -151,7 +151,7 @@ const modalOptions = {
|
|
|
151
151
|
const modal = new Modal($modalElement, modalOptions);
|
|
152
152
|
|
|
153
153
|
modal.show();
|
|
154
|
-
|
|
154
|
+
```
|
|
155
155
|
|
|
156
156
|
Check out the JavaScript behaviour section of each component's page to learn how you can use this.
|
|
157
157
|
|
|
@@ -161,9 +161,9 @@ Flowbite supports type declarations for the interactive UI components including
|
|
|
161
161
|
|
|
162
162
|
Additionally to our code above, we will now import some relevant types from the Flowbite package, namely the `ModalOptions` and `ModalInterface`:
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
```javascript
|
|
165
165
|
import { Modal } from 'flowbite'
|
|
166
166
|
import type { ModalOptions, ModalInterface } from 'flowbite'
|
|
167
167
|
|
|
168
168
|
// other code
|
|
169
|
-
|
|
169
|
+
```
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Blockquote - Flowbite
|
|
4
|
-
description: The blockquote component can be used to quote text content from an external source that can be used for testimonials, reviews, and quotes inside an article
|
|
5
|
-
group: typography
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Paragraphs
|
|
9
|
-
previousLink: typography/paragraphs/
|
|
10
|
-
next: Images
|
|
11
|
-
nextLink: typography/images/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
Get started with a collection of blockquote components when quoting external sources such as quotes inside an article, user reviews, and testimonials based on multiple examples of layouts, styles, and contexts.
|
|
15
2
|
|
|
16
3
|
The main `<blockquote>` HTML tag can be used together with the `<cite>` tag or attribute to also mention the source of the quote content.
|
|
@@ -19,17 +6,17 @@ The main `<blockquote>` HTML tag can be used together with the `<cite>` tag or a
|
|
|
19
6
|
|
|
20
7
|
Use this example to quote an external source inside a blockquote element.
|
|
21
8
|
|
|
22
|
-
|
|
9
|
+
```html
|
|
23
10
|
<blockquote class="text-xl italic font-semibold tracking-tight text-heading">
|
|
24
11
|
<p>"Flowbite is just awesome. It contains tons of predesigned pages starting from login screen to complex dashboard. Best choice for your SaaS application."</p>
|
|
25
12
|
</blockquote>
|
|
26
|
-
|
|
13
|
+
```
|
|
27
14
|
|
|
28
15
|
## Solid background
|
|
29
16
|
|
|
30
17
|
This example can be used as an alternative style to the default one by applying a solid background color.
|
|
31
18
|
|
|
32
|
-
|
|
19
|
+
```html
|
|
33
20
|
<p class="text-body">
|
|
34
21
|
Does your user know how to exit out of screens? Can they follow your intended user journey and buy something from the site you’ve designed? By running a usability test, you’ll be able to see how users will interact with your design once it’s live.
|
|
35
22
|
</p>
|
|
@@ -39,24 +26,24 @@ Does your user know how to exit out of screens? Can they follow your intended us
|
|
|
39
26
|
<p class="text-body">
|
|
40
27
|
First of all you need to understand how Flowbite works. This library is not another framework. Rather, it is a set of components based on Tailwind CSS that you can just copy-paste from the documentation.
|
|
41
28
|
</p>
|
|
42
|
-
|
|
29
|
+
```
|
|
43
30
|
|
|
44
31
|
## Blockquote icon
|
|
45
32
|
|
|
46
33
|
Use this example to show an icon above the blockquote text content.
|
|
47
34
|
|
|
48
|
-
|
|
35
|
+
```html
|
|
49
36
|
<blockquote class="text-xl italic font-semibold text-heading tracking-tight">
|
|
50
37
|
<svg class="w-9 h-9 text-heading mb-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11V8a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1Zm0 0v2a4 4 0 0 1-4 4H5m14-6V8a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1Zm0 0v2a4 4 0 0 1-4 4h-1"/></svg>
|
|
51
38
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
52
39
|
</blockquote>
|
|
53
|
-
|
|
40
|
+
```
|
|
54
41
|
|
|
55
42
|
## Paragraph context
|
|
56
43
|
|
|
57
44
|
Use this example to show a blockquote component between multiple paragraph elements.
|
|
58
45
|
|
|
59
|
-
|
|
46
|
+
```html
|
|
60
47
|
<p class="mb-3 text-body">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.</p>
|
|
61
48
|
<div class="grid grid-cols-1 md:gap-6 md:grid-cols-2">
|
|
62
49
|
<p class="mb-3 text-body">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.</p>
|
|
@@ -65,13 +52,13 @@ Use this example to show a blockquote component between multiple paragraph eleme
|
|
|
65
52
|
</blockquote>
|
|
66
53
|
</div>
|
|
67
54
|
<p class="mb-3 text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil, and deploy changes with ease, with a complete audit trail for every change.</p>
|
|
68
|
-
|
|
55
|
+
```
|
|
69
56
|
|
|
70
57
|
## User testimonial
|
|
71
58
|
|
|
72
59
|
This example can be used for user testimonials by mentioning the author and occupation of the author.
|
|
73
60
|
|
|
74
|
-
|
|
61
|
+
```html
|
|
75
62
|
<figure class="max-w-screen-md mx-auto text-center">
|
|
76
63
|
<svg class="w-11 h-11 text-heading mb-4 mx-auto" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11V8a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1Zm0 0v2a4 4 0 0 1-4 4H5m14-6V8a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1Zm0 0v2a4 4 0 0 1-4 4h-1"/></svg>
|
|
77
64
|
<blockquote>
|
|
@@ -85,13 +72,13 @@ This example can be used for user testimonials by mentioning the author and occu
|
|
|
85
72
|
</div>
|
|
86
73
|
</figcaption>
|
|
87
74
|
</figure>
|
|
88
|
-
|
|
75
|
+
```
|
|
89
76
|
|
|
90
77
|
## User Review
|
|
91
78
|
|
|
92
79
|
Use this example to show a user review with rating stars and the name and occupation of the author.
|
|
93
80
|
|
|
94
|
-
|
|
81
|
+
```html
|
|
95
82
|
<figure class="max-w-screen-md">
|
|
96
83
|
<div class="flex items-center space-x-1 mb-4">
|
|
97
84
|
<svg class="w-5 h-5 text-fg-yellow" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>
|
|
@@ -111,7 +98,7 @@ Use this example to show a user review with rating stars and the name and occupa
|
|
|
111
98
|
</div>
|
|
112
99
|
</figcaption>
|
|
113
100
|
</figure>
|
|
114
|
-
|
|
101
|
+
```
|
|
115
102
|
|
|
116
103
|
## Alignment
|
|
117
104
|
|
|
@@ -121,31 +108,31 @@ Choose from the following examples the blockquote text alignment from starting f
|
|
|
121
108
|
|
|
122
109
|
The default alignment of the blockquote text content is the left side of the document.
|
|
123
110
|
|
|
124
|
-
|
|
111
|
+
```html
|
|
125
112
|
<blockquote class="text-xl italic font-semibold text-left text-heading">
|
|
126
113
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
127
114
|
</blockquote>
|
|
128
|
-
|
|
115
|
+
```
|
|
129
116
|
|
|
130
117
|
### Center
|
|
131
118
|
|
|
132
119
|
Use the `text-center` class from Tailwind CSS to align the text content inside the blockquote to the center.
|
|
133
120
|
|
|
134
|
-
|
|
121
|
+
```html
|
|
135
122
|
<blockquote class="text-xl italic font-semibold text-center text-heading">
|
|
136
123
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
137
124
|
</blockquote>
|
|
138
|
-
|
|
125
|
+
```
|
|
139
126
|
|
|
140
127
|
### Right
|
|
141
128
|
|
|
142
129
|
Use the `text-right` utility class from Tailwind CSS to align the blockquote text content to the right side of the page.
|
|
143
130
|
|
|
144
|
-
|
|
131
|
+
```html
|
|
145
132
|
<blockquote class="text-xl italic font-semibold text-right text-heading">
|
|
146
133
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
147
134
|
</blockquote>
|
|
148
|
-
|
|
135
|
+
```
|
|
149
136
|
|
|
150
137
|
## Sizes
|
|
151
138
|
|
|
@@ -155,28 +142,28 @@ Choose from one of the multiple sizes for the default blockquote component based
|
|
|
155
142
|
|
|
156
143
|
Use the `text-lg` font size class from Tailwind CSS to apply the small size for the blockquote component.
|
|
157
144
|
|
|
158
|
-
|
|
145
|
+
```html
|
|
159
146
|
<blockquote class="text-lg italic font-semibold text-heading">
|
|
160
147
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
161
148
|
</blockquote>
|
|
162
|
-
|
|
149
|
+
```
|
|
163
150
|
|
|
164
151
|
### Medium
|
|
165
152
|
|
|
166
153
|
Use the `text-xl` utility class to set the default size for the blockquote element.
|
|
167
154
|
|
|
168
|
-
|
|
155
|
+
```html
|
|
169
156
|
<blockquote class="text-xl italic font-semibold text-heading">
|
|
170
157
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
171
158
|
</blockquote>
|
|
172
|
-
|
|
159
|
+
```
|
|
173
160
|
|
|
174
161
|
### Large
|
|
175
162
|
|
|
176
163
|
The `text-2xl` class can be used to set a large size for the blockquote component.
|
|
177
164
|
|
|
178
|
-
|
|
165
|
+
```html
|
|
179
166
|
<blockquote class="text-2xl italic font-semibold text-heading">
|
|
180
167
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
181
168
|
</blockquote>
|
|
182
|
-
|
|
169
|
+
```
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Headings - Flowbite
|
|
4
|
-
description: The heading component defines six levels of title elements from H1 to H6 that are used as titles and subtitles on a web page based on multiple styles and layouts
|
|
5
|
-
group: typography
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Floating label
|
|
9
|
-
previousLink: forms/floating-label/
|
|
10
|
-
next: Paragraphs
|
|
11
|
-
nextLink: typography/paragraphs/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
Get started with the heading component to define titles and subtitles on a web page and also improve the on-page SEO metrics of your website by targeting high-traffic keywords on Google.
|
|
15
2
|
|
|
16
3
|
At least one unique H1 tag should be available for each page on your website with the next tags starting from H2 to H6 for each section. Choose from a collection of custom heading components based on multiple styles and layouts built with the utility classes from Tailwind CSS.
|
|
@@ -19,17 +6,17 @@ At least one unique H1 tag should be available for each page on your website wit
|
|
|
19
6
|
|
|
20
7
|
Use this example of a H1 heading in the context of a paragraph and CTA button for landing pages.
|
|
21
8
|
|
|
22
|
-
|
|
9
|
+
```html
|
|
23
10
|
<h1 class="mb-4 text-4xl font-bold tracking-tight text-heading md:text-5xl lg:text-6xl">We invest in the world’s potential</h1>
|
|
24
11
|
<p class="mb-6 text-lg font-normal text-body lg:text-xl sm:px-16 xl:px-48">Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.</p>
|
|
25
12
|
<a href="#" class="inline-flex items-center text-white bg-brand box-border border border-transparent hover:bg-brand-strong focus:ring-4 focus:ring-brand-medium shadow-xs font-medium leading-5 rounded-base text-base px-5 py-3 focus:outline-none">Learn more</a>
|
|
26
|
-
|
|
13
|
+
```
|
|
27
14
|
|
|
28
15
|
## Second-level heading
|
|
29
16
|
|
|
30
17
|
Use this example of a second-level H2 heading as the main subtitle for each section of your web page.
|
|
31
18
|
|
|
32
|
-
|
|
19
|
+
```html
|
|
33
20
|
<h2 class="text-4xl font-bold">Payments tool for companies</h2>
|
|
34
21
|
<p class="my-4 text-lg text-body">Start developing with an open-source library of over 450+ UI components, sections, and pages built with the utility classes from Tailwind CSS and designed in Figma.</p>
|
|
35
22
|
<p class="mb-4 text-lg font-normal text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions. Accelerate critical development work, eliminate toil, and deploy changes with ease.</p>
|
|
@@ -37,49 +24,49 @@ Use this example of a second-level H2 heading as the main subtitle for each sect
|
|
|
37
24
|
Read more
|
|
38
25
|
<svg class="w-5 h-5 ms-1 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
|
|
39
26
|
</a>
|
|
40
|
-
|
|
27
|
+
```
|
|
41
28
|
|
|
42
29
|
## Highlighted heading
|
|
43
30
|
|
|
44
31
|
Use this example to highlight a certain portion of the heading text with a different color.
|
|
45
32
|
|
|
46
|
-
|
|
33
|
+
```html
|
|
47
34
|
<h1 class="mb-4 text-4xl font-bold tracking-tight text-heading md:text-5xl lg:text-6xl">Get back to growth with <span class="text-fg-brand">the world's #1</span> CRM.</h1>
|
|
48
35
|
<p class="text-lg font-normal text-body lg:text-xl">Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.</p>
|
|
49
|
-
|
|
36
|
+
```
|
|
50
37
|
|
|
51
38
|
## Heading mark
|
|
52
39
|
|
|
53
40
|
This example can be used to mark one part of the heading text with a solid background for highlighting.
|
|
54
41
|
|
|
55
|
-
|
|
42
|
+
```html
|
|
56
43
|
<h1 class="mb-4 text-4xl font-bold tracking-tight text-heading md:text-5xl lg:text-6xl">Regain <mark class="px-2 pb-0.5 text-white bg-brand rounded-base">control</mark> over your days</h1>
|
|
57
44
|
<p class="text-lg font-normal text-body lg:text-xl">Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.</p>
|
|
58
|
-
|
|
45
|
+
```
|
|
59
46
|
|
|
60
47
|
## Heading gradient
|
|
61
48
|
|
|
62
49
|
Use this example to highlight a portion of the heading text by using a gradient style.
|
|
63
50
|
|
|
64
|
-
|
|
51
|
+
```html
|
|
65
52
|
<h1 class="mb-4 text-3xl font-bold text-heading md:text-5xl lg:text-6xl"><span class="text-transparent bg-clip-text bg-gradient-to-r to-emerald-600 from-sky-400">Better Data</span> Scalable AI.</h1>
|
|
66
53
|
<p class="text-lg font-normal text-body lg:text-xl">Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.</p>
|
|
67
|
-
|
|
54
|
+
```
|
|
68
55
|
|
|
69
56
|
## Heading underline
|
|
70
57
|
|
|
71
58
|
Get started with this example to underline an important part of the heading component using the offset feature from Tailwind CSS.
|
|
72
59
|
|
|
73
|
-
|
|
60
|
+
```html
|
|
74
61
|
<h1 class="mb-4 text-4xl font-bold tracking-tight text-heading md:text-5xl lg:text-6xl">We invest in the <span class="underline underline-offset-3 decoration-8 decoration-brand">world’s potential</span></h1>
|
|
75
62
|
<p class="text-lg font-normal text-body lg:text-xl">Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.</p>
|
|
76
|
-
|
|
63
|
+
```
|
|
77
64
|
|
|
78
65
|
## Breadcrumb context
|
|
79
66
|
|
|
80
67
|
Get started with this example to position a breadcrumb component above the H1 heading component.
|
|
81
68
|
|
|
82
|
-
|
|
69
|
+
```html
|
|
83
70
|
<nav class="flex mb-2.5" aria-label="Breadcrumb">
|
|
84
71
|
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
|
|
85
72
|
<li class="inline-flex items-center">
|
|
@@ -103,23 +90,23 @@ Get started with this example to position a breadcrumb component above the H1 he
|
|
|
103
90
|
</ol>
|
|
104
91
|
</nav>
|
|
105
92
|
<h2 class="text-3xl font-bold tracking-tight text-heading md:text-4xl">Team management</h2>
|
|
106
|
-
|
|
93
|
+
```
|
|
107
94
|
|
|
108
95
|
## Badge context
|
|
109
96
|
|
|
110
97
|
Use this example to show a badge component inside the heading text element as a secondary indicator.
|
|
111
98
|
|
|
112
|
-
|
|
99
|
+
```html
|
|
113
100
|
<h1 class="text-heading flex items-center text-5xl font-bold tracking-tight">Flowbite <span class="inline-flex ms-3 px-2 py-1 ring-1 ring-inset ring-brand-subtle text-fg-brand-strong text-sm font-medium rounded bg-brand-softer">PRO</span></h1>
|
|
114
|
-
|
|
101
|
+
```
|
|
115
102
|
|
|
116
103
|
## Secondary text
|
|
117
104
|
|
|
118
105
|
This example can be used to add a secondary text inside the main heading component.
|
|
119
106
|
|
|
120
|
-
|
|
107
|
+
```html
|
|
121
108
|
<h1 class="text-5xl font-bold text-heading">Flowbite<small class="ms-2 font-medium text-body">This is secondary text</small></h1>
|
|
122
|
-
|
|
109
|
+
```
|
|
123
110
|
|
|
124
111
|
## Sizes
|
|
125
112
|
|
|
@@ -129,46 +116,46 @@ The heading component has six levels of importance starting from H1 which has to
|
|
|
129
116
|
|
|
130
117
|
Use the H1 tag as the most important text element to indicate the title of your web page.
|
|
131
118
|
|
|
132
|
-
|
|
119
|
+
```html
|
|
133
120
|
<h1 class="text-5xl font-bold text-heading">Heading 1</h1>
|
|
134
|
-
|
|
121
|
+
```
|
|
135
122
|
|
|
136
123
|
### Heading two (H2)
|
|
137
124
|
|
|
138
125
|
The H2 tag can be used as subtitles of the page's sections.
|
|
139
126
|
|
|
140
|
-
|
|
127
|
+
```html
|
|
141
128
|
<h2 class="text-4xl font-bold text-heading">Heading 2</h2>
|
|
142
|
-
|
|
129
|
+
```
|
|
143
130
|
|
|
144
131
|
### Heading three (H3)
|
|
145
132
|
|
|
146
133
|
Use the H3 tags inside sections that already have a H2 available.
|
|
147
134
|
|
|
148
|
-
|
|
135
|
+
```html
|
|
149
136
|
<h3 class="text-3xl font-bold text-heading">Heading 3</h3>
|
|
150
|
-
|
|
137
|
+
```
|
|
151
138
|
|
|
152
139
|
### Heading four (H4)
|
|
153
140
|
|
|
154
141
|
The H4 can be generally used after H2 and H3 tags are already present and you need a more in-depth hierarchy.
|
|
155
142
|
|
|
156
|
-
|
|
143
|
+
```html
|
|
157
144
|
<h4 class="text-2xl font-bold text-heading">Heading 4</h4>
|
|
158
|
-
|
|
145
|
+
```
|
|
159
146
|
|
|
160
147
|
### Heading five (H5)
|
|
161
148
|
|
|
162
149
|
The H5 tag is most often used in longer articles with other heading already available or in sidebars.
|
|
163
150
|
|
|
164
|
-
|
|
151
|
+
```html
|
|
165
152
|
<h5 class="text-xl font-bold text-heading">Heading 5</h5>
|
|
166
|
-
|
|
153
|
+
```
|
|
167
154
|
|
|
168
155
|
### Heading six (H6)
|
|
169
156
|
|
|
170
157
|
Using the H6 tag is quite rare because it means that you've already used all heading from H1 to H5, but you can still use it if you have a very complex article with lots of headings.
|
|
171
158
|
|
|
172
|
-
|
|
159
|
+
```html
|
|
173
160
|
<h6 class="text-lg font-bold text-heading">Heading 6</h6>
|
|
174
|
-
|
|
161
|
+
```
|
package/data/typography/hr.md
CHANGED
|
@@ -1,43 +1,30 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: docs
|
|
3
|
-
title: Tailwind CSS Horizontal Line (HR) - Flowbite
|
|
4
|
-
description: Create a horizontal line using the HR tag to separate content such as paragraphs, blockquotes, and other elements using the utility classes from Tailwind CSS
|
|
5
|
-
group: typography
|
|
6
|
-
toc: true
|
|
7
|
-
|
|
8
|
-
previous: Text
|
|
9
|
-
previousLink: typography/text/
|
|
10
|
-
next: Charts
|
|
11
|
-
nextLink: plugins/charts/
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
The HR component can be used to separate content using a horizontal line by adding space between elements based on multiple styles, variants, and layouts.
|
|
15
2
|
|
|
16
3
|
## Default HR
|
|
17
4
|
|
|
18
5
|
Use this example to separate text content with a `<hr>` horizontal line.
|
|
19
6
|
|
|
20
|
-
|
|
7
|
+
```html
|
|
21
8
|
<p class="text-body">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.</p>
|
|
22
9
|
<hr class="h-px my-8 bg-neutral-quaternary border-0">
|
|
23
10
|
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil, and deploy changes with ease, with a complete audit trail for every change.</p>
|
|
24
|
-
|
|
11
|
+
```
|
|
25
12
|
|
|
26
13
|
## Trimmed
|
|
27
14
|
|
|
28
15
|
Use this example to show a shorter version of the horizontal line.
|
|
29
16
|
|
|
30
|
-
|
|
17
|
+
```html
|
|
31
18
|
<p class="text-body">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.</p>
|
|
32
19
|
<hr class="w-48 h-1 mx-auto my-4 bg-neutral-quaternary border-0 rounded-sm md:my-10">
|
|
33
20
|
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil, and deploy changes with ease, with a complete audit trail for every change.</p>
|
|
34
|
-
|
|
21
|
+
```
|
|
35
22
|
|
|
36
23
|
## Icon HR
|
|
37
24
|
|
|
38
25
|
This example can be used to set a custom [SVG icon](https://flowbite.com/icons/) in the middle of the HR element.
|
|
39
26
|
|
|
40
|
-
|
|
27
|
+
```html
|
|
41
28
|
<p class="text-body">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.</p>
|
|
42
29
|
<div class="inline-flex items-center justify-center w-full">
|
|
43
30
|
<hr class="w-64 h-1 my-8 bg-neutral-quaternary border-0 rounded-sm">
|
|
@@ -46,29 +33,29 @@ This example can be used to set a custom [SVG icon](https://flowbite.com/icons/)
|
|
|
46
33
|
</div>
|
|
47
34
|
</div>
|
|
48
35
|
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil.</p>
|
|
49
|
-
|
|
36
|
+
```
|
|
50
37
|
|
|
51
38
|
## HR with text
|
|
52
39
|
|
|
53
40
|
Use this example to add a text in the middle of the HR component.
|
|
54
41
|
|
|
55
|
-
|
|
42
|
+
```html
|
|
56
43
|
<p class="text-body">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.</p>
|
|
57
44
|
<div class="inline-flex items-center justify-center w-full">
|
|
58
45
|
<hr class="w-64 h-px my-8 bg-neutral-quaternary border-0">
|
|
59
46
|
<span class="absolute px-3 font-medium text-heading -translate-x-1/2 bg-neutral-primary left-1/2">or</span>
|
|
60
47
|
</div>
|
|
61
48
|
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil.</p>
|
|
62
|
-
|
|
49
|
+
```
|
|
63
50
|
|
|
64
51
|
## HR shape
|
|
65
52
|
|
|
66
53
|
This example can be used to separate content with a HR tag as a shape instead of a line.
|
|
67
54
|
|
|
68
|
-
|
|
55
|
+
```html
|
|
69
56
|
<p class="text-body">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.</p>
|
|
70
57
|
<hr class="w-8 h-8 mx-auto my-8 bg-neutral-quaternary border-0 rounded-sm md:my-12">
|
|
71
58
|
<blockquote class="text-xl italic font-semibold text-center text-heading">
|
|
72
59
|
<p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
|
|
73
60
|
</blockquote>
|
|
74
|
-
|
|
61
|
+
```
|