Interactivity

Appearance

Utilities for suppressing native form control styling.

Quick reference

Class
Properties
appearance-noneappearance: none;

Basic usage

Removing default element appearance

Use appearance-none to reset any browser specific styling on an element. This utility is often used when creating custom form components.

Appearance - 图1

  1. <select>
  2. <option>Yes</option>
  3. <option>No</option>
  4. <option>Maybe</option>
  5. </select>
  6. <select class="appearance-none">
  7. <option>Yes</option>
  8. <option>No</option>
  9. <option>Maybe</option>
  10. </select>