Pill layouts
Default, bordered, toolbar layoutsBasic pills
Basic pills example using
.nav-pills
class. Also requires base .nav
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Basic rounded
To make pills rounded, add
.rounded-pill
class to all .nav-link
elements.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified pills
Easily make pills equal widths of their parent with
.nav-justified
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified rounded
Easily make pills equal widths of their parent with
.nav-justified
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Bordered pills
Add border and background color to the pills with
.nav-pills-bordered
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Bordered rounded
To make pills rounded, add
.rounded-pill
class to all .nav-link
elements.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Bordered justified
To use in pills with equal widths add
.nav-justified .nav-pills-bordered
classes.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Bordered rounded justified
To use in pills with equal widths add
.nav-justified .nav-pills-bordered
classes.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pills toolbar
Display pills as a toolbar with
.nav-pills-toolbar
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Rounded toolbar
To make pills toolbar rounded, add
.rounded-left-pill
and .rounded-right-pill
classes to the first/last .nav-link
elements.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Toolbar justified
To use in pills with equal widths add
.nav-justified .nav-pills-toolbar
classes.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Rounded justified toolbar
To make pills toolbar rounded, add
.rounded-left-pill
and .rounded-right-pill
classes to the first/last .nav-link
elements.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pill options
Positioning, stacked optionsCentered position
To use centered pills, add
.justify-content-center
to the .nav-pills
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Right position
To use right aligned pills, add
.justify-content-end
to the .nav-pills
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Stacked pills
Pills are also vertically stackable. Just add
.flex-column
to the .nav-pills
class.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Stacked with icons/badges
Examples of stackable pills with icons, badges, pill badges and dropdown menu.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Stacked bordered
To make bordered pills stackable, add
.nav-pills-bordered .flex-column
classes to the .nav-pills
container.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Stacked bordered/toolbar
To make bordered pills stackable and remove spacings, add
.nav-pills-bordered .nav-pills-toolbar .flex-column
classes to the .nav-pills
container.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Left position
Stacked pills with
left
nav using set of flexbox and margin utility classes.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Right position
Stacked pills with
right
nav using set of flexbox and margin utility classes.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pill elements
Icons and badgesPills with left icons
Add icon markup
before
pill nav text to display icons on the left side.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified pills. Left icons
To use in pills with equal widths add
.nav-justified
and icon markup to the pill nav.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pills with right icons
Add icon markup
after
pill nav text to display icons on the right side.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified pills. Right icons
To use in pills with equal widths add
.nav-justified
and icon markup to the pill nav.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pills with icons only
If pill nav doesn't have a text, add icon markup to display icon only.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified pills. Icons only
To use in pills with equal widths add
.nav-justified
and icon markup to the pill nav.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pills with badges
Display
badges
on the left/right sides and in empty pill nav. Empty badges are hidden.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified pills with badges
To use in pills with equal widths add
.nav-justified
and badge markup to the pill nav.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Pills with pill badges
Display
badges
on the left/right sides and in empty pill nav. Empty badges are hidden.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.
Justified pills with badges
To use in pills with equal widths add
.nav-justified
and badge markup to the pill nav.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid laeggin.
DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg whatever.
Aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthet.