Module width

Module width 

Source
Expand description

Utilities for setting the width of an element.

Class Properties
w-<float>width: <float / 4>rem;
w-<integer>/<integer>width: (<integer>/<integer>)%;
w-pxwidth: 1px;
w-fullwidth: 100%;
w-autowidth: auto;
w-screenwidth: 100vw;
w-minwidth: min-content;
w-maxwidth: max-content;
w-fitwidth: fit-content;
w-svwwidth: 100svw;
w-lvwwidth: 100lvw;
w-dvwwidth: 100dvw;

§Tailwind compatibility

Width values don’t follow Tailwind’s philosophy of limiting possible values and all spacing values are supported. They are however perfectly compatible with Tailwind’s values.

§Arbitrary values

Any <length> or <percentage> property is allowed as arbitrary value. For example, w-[42mm].

Tailwind reference