Inline Item

Use the inline-item inline-item-before, inline-item inline-item-middle, and inline-item inline-item-after classes to provide consistent spacing between text and icons in elements such as links or buttons. This can also be used in other components that have inline content (e.g., badge and label).

For this component to function and space properly, the white space must be removed between text and icons from the markup inside the component. It’s generally easier to remove all white space inside the link, button, or component. In the examples below, whitespaces in button and link are slightly off and the link underline on hover is a bit wide.

Snippet

Snippet

Button Without Whitespace

Snippet

Button With Whitespace

Snippet

Close

A Button or Link for closing stuff.

Anchor

Snippet

Button

Snippet

Edit this page on GitHub

Contributors

Matuzalém Teles

Last edited May 9, 2025 at 6:15:38 AM