Feature: constants for utility classes

Author: zerkmsCreated Jan 14, 2026Updated Jan 14, 2026
Labelsenhancement

Is your feature request related to a problem? Please describe

Scenario: during bootstrap v4 -> v5 upgrade the text-monospace class has been renamed to font-monospace.

Given this class is used ad-hoc, I was not able to catch it but with manually grepping source code.

If react-bootstrap exposed all utility classes (that are used standalone, not as a part of components) - then I would know about the BC thanks to typescript.

Describe the solution you'd like

Something like

import { classTextMonospace } from 'react-bootstrap/Utility';

then use as

<div className={classTextMonospace} ... />

In this scenario v4 -> v5 upgrade would break this code, because classTextMonospace constant wouldn't exist anymore but classFontMonospace.

Describe alternatives you've considered

No response

Additional context

No response

Source: react-bootstrap/react-bootstrap