boolean prop

A component option that is just true or false, such as isPrimary or hasIcon.

In more detail

One or two are fine, but they multiply: every new flag doubles the possible combinations, many of which make no sense, such as isPrimary and isDanger together. This prop explosion makes components fragile. Variants and composition are the usual cures.

Related terms

Taught in

References