Skip to content

Commit

Permalink
Merge pull request #726 from themesberg/number-input
Browse files Browse the repository at this point in the history
Number input
  • Loading branch information
zoltanszogyenyi authored Nov 21, 2023
2 parents e73c36c + 455ac55 commit 05ae7ac
Show file tree
Hide file tree
Showing 33 changed files with 1,422 additions and 114 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ The quickest way to get started working with Flowbite is to simply include the C
Require the following minified stylesheet inside the `head` tag:

```html
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.1.1/flowbite.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.0/flowbite.min.css" rel="stylesheet" />
```

And include the following javascript file before the end of the `body` tag:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.1.1/flowbite.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.0/flowbite.min.js"></script>
```

### Bundled JavaScript
Expand Down
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ enableInlineShortcodes: true

params:
homepage: "https://flowbite.com"
current_version: 2.1.1
current_version: 2.2.0
authors: Themesberg
social_image_path: /docs/images/og-image.png

Expand Down
2 changes: 1 addition & 1 deletion content/components/banner.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ This example can be used to encourage your website visitors to sign up to your e

<div id="newsletter-banner" tabindex="-1" class="fixed top-0 start-0 z-50 flex justify-between w-full p-4 border-b border-gray-200 bg-gray-50 dark:bg-gray-700 dark:border-gray-600">
<div class="flex items-center flex-shrink-0 w-full mx-auto sm:w-auto">
<form action="#" class="flex flex-col items-center w-full md:flex-row">
<form class="flex flex-col items-center w-full md:flex-row">
<label for="email" class="flex-shrink-0 mb-2 me-auto text-sm font-medium text-gray-500 md:mb-0 md:me-4 dark:text-gray-400 md:m-0">Sign up for our newsletter</label>
<input type="email" id="email" placeholder="Enter your email" class="bg-white border border-gray-300 text-gray-900 md:w-64 mb-2 md:mb-0 md:me-4 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required />
<button type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Subscribe</button>
Expand Down
4 changes: 2 additions & 2 deletions content/components/drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Use this example to show a contact form inside the drawer component.
</svg>
<span class="sr-only">Close menu</span>
</button>
<form action="#" class="mb-6">
<form class="mb-6">
<div class="mb-6">
<label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Your email</label>
<input type="email" id="email" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="[email protected]" required>
Expand Down Expand Up @@ -248,7 +248,7 @@ Use this example if you want to add form elements inside the drawer component in
</svg>
<span class="sr-only">Close menu</span>
</button>
<form action="#" class="mb-6">
<form class="mb-6">
<div class="mb-6">
<label for="title" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Title</label>
<input type="text" id="title" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Apple Keynote" required>
Expand Down
4 changes: 2 additions & 2 deletions content/components/dropdowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ You can also use the dropdown element inside a navigation bar and add a second l
</svg></button>
<!-- Dropdown menu -->
<div id="dropdownNavbar" class="z-10 hidden font-normal bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600">
<ul class="py-2 text-sm text-gray-700 dark:text-gray-400" aria-labelledby="dropdownLargeButton">
<ul class="py-2 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="dropdownLargeButton">
<li>
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Dashboard</a>
</li>
Expand All @@ -928,7 +928,7 @@ You can also use the dropdown element inside a navigation bar and add a second l
</li>
</ul>
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-400 dark:hover:text-white">Sign out</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white">Sign out</a>
</div>
</div>
</li>
Expand Down
Loading

0 comments on commit 05ae7ac

Please sign in to comment.