Search
 
SCRIPT & CODE EXAMPLE
 

HTML

tailwind input

<section class="flex justify-center mt-10">
    <input placeholder="Name"
        class="border-2 transition duration-500 placeholder-red-400 focus:placeholder-transparent border-red-400 w-4/12 py-2 text-center text-red-400 bg-transparent rounded-md focus:outline-none ">
</section>
Comment

tailwind form input

<form>
  <div class="mb-6">
    <label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Your email</label>
    <input type="email" id="email" class="shadow-sm 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 dark:shadow-sm-light" placeholder="name@flowbite.com" required>
  </div>
  <div class="mb-6">
    <label for="password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Your password</label>
    <input type="password" id="password" class="shadow-sm 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 dark:shadow-sm-light" required>
  </div>
  <div class="mb-6">
    <label for="repeat-password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Repeat password</label>
    <input type="password" id="repeat-password" class="shadow-sm 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 dark:shadow-sm-light" required>
  </div>
  <div class="flex items-start mb-6">
    <div class="flex items-center h-5">
      <input id="terms" type="checkbox" value="" class="w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-blue-300 dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-blue-600 dark:ring-offset-gray-800" required>
    </div>
    <label for="terms" class="ml-2 text-sm font-medium text-gray-900 dark:text-gray-300">I agree with the <a href="#" class="text-blue-600 hover:underline dark:text-blue-500">terms and conditions</a></label>
  </div>
  <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 px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Register new account</button>
</form>
Comment

Tailwind tag input

{{-- On 'head'  --}}
	<link href="https://unpkg.com/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css" />


{{-- inside your 'body'  --}}
	<div class="flex items-center justify-center mt-20">
    <div class="w-1/2">
        <label for="Tags" class="block mb-2 text-sm text-gray-600">Tags</label>
        <input type="text" class="w-full px-4 py-6 text-sm border border-gray-300 rounded outline-none" name="tags"
            value="Alpine Js, Tailwind CSS, PHP8.0" autofocus />
    </div>


{{-- Before </body> tag  --}}
    <script>
        // The DOM element you wish to replace with Tagify
        var input = document.querySelector('input[name=tags]');
        // initialize Tagify on the above input node reference
        new Tagify(input);
    </script>
    
{{-- Enjoy  --}}
Comment

PREVIOUS NEXT
Code Example
Html :: internal phone input 
Html :: http://arnav.tcode.in/ 
Html :: kjsdahflkahsdkljfhlakjhsldkjfhjkdskslakjsdhflkjahsdlkfjhjahlksjdhflkjshfjkshakdjshfksjdhjkfsakdhfjkhsadlkjf 
Html :: une solitude 
Html :: convert haml to html 
Html :: simbolo checkbox en tabla en html 
Html :: bokeh save html file to directory 
Html :: Howt o get redirected to another page using a button in HTML using Python using Flask 
Html :: button mousover text 
Html :: how to insert computer code to html 
Html :: cara mengatur ukuran gambar navbar-brand 
Html :: mac mail paste without formatting 
Html :: HTML <del Element 
Html :: html open gmail mailto 
Html :: html not showing image with full path 
Html :: display html table only on screen larger than md 
Html :: virtual pet comp 105 code 
Html :: jstl length 
Html :: script file not working in internet explorer 
Html :: what is the bootstrap loader 
Html :: =rept sheet 
Html :: rmarkdown revealjs_presentation remove black border to images 
Html :: href root folder html 
Html :: 2 button component in single row vuetify 
Html :: self closing tag html 
Html :: paragraphe en html 
Html :: save base 64 string to file 
Html :: read_html pandas skiprows function example 
Html :: <aside Tag in hindi 
Html :: bootstrap centred modal 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =