Interactivity
Utilities for suppressing native form control styling.
Class | Styles |
---|---|
appearance-none | appearance: none; |
appearance-auto | appearance: auto; |
Use appearance-none
to reset any browser specific styling on an element:
This utility is often used when creating custom form components.
Use appearance-auto
to restore the default browser specific styling on an element:
Try emulating `forced-colors: active` in your developer tools to see the difference
This is useful for reverting to the standard browser controls in certain accessibility modes.
Prefix an appearance
utility with a breakpoint variant like md:
to only apply the utility at medium screen sizes and above:
<select class="appearance-auto md:appearance-none ..."> <!-- ... --></select>
Learn more about using variants in the variants documentation.