Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tailwindcss/forms

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tailwindcss/forms

A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.

  • 0.5.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3M
decreased by-19.98%
Maintainers
4
Weekly downloads
 
Created

What is @tailwindcss/forms?

The @tailwindcss/forms plugin is a Tailwind CSS plugin that provides a basic reset for form styles that makes form elements easy to override with utilities. It helps in creating consistent and customizable forms with Tailwind CSS utility classes.

What are @tailwindcss/forms's main functionalities?

Form Inputs Styling

This feature allows you to style form inputs such as text fields, making them more consistent and visually appealing across different browsers.

<input class='block w-full px-4 py-2 mt-2 text-gray-700 bg-white border border-gray-300 rounded-md focus:border-blue-500 focus:ring focus:ring-blue-200 focus:ring-opacity-50' type='text' placeholder='Full name'>

Checkbox and Radio Buttons Styling

With this feature, you can apply Tailwind CSS styles to checkboxes and radio buttons to make them match the overall design of your site.

<input type='checkbox' class='w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500'>

Select Dropdown Styling

This feature allows you to style select dropdowns with Tailwind CSS, providing a more consistent and customizable appearance.

<select class='block w-full px-4 py-2 mt-2 text-gray-700 bg-white border border-gray-300 rounded-md focus:border-blue-500 focus:ring focus:ring-blue-200 focus:ring-opacity-50'><option>Option 1</option><option>Option 2</option></select>

File Input Styling

This feature enables you to style file inputs with Tailwind CSS, making them blend in with the rest of your form elements.

<input type='file' class='block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-violet-50 file:text-violet-700 hover:file:bg-violet-100'>

Other packages similar to @tailwindcss/forms

FAQs

Package last updated on 05 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc