Skip to content

Glossary: Tailwind CSS

Ternary

Also written: ternary operator

The JavaScript form `test ? a : b`, which gives `a` if the test is true and `b` otherwise, such as `soldOut ? "opacity-50" : ""`.

Where the book teaches it

Related terms

Props