Day 3 - Components

Pre-styled, reusable UI elements for rapid web development.


1. Navbar

A responsive navigation header with links, branding, and togglers.

Key classes: .navbar, .navbar-expand-lg, .navbar-dark, .bg-dark


2. Alerts

Contextual feedback messages for user actions.

Key classes: .alert, .alert-{color} (primary, success, warning, danger, info)


3. Buttons

Standard clickable buttons with customizable sizes and styles.

Button Colors
Outlined Buttons
Button Sizes

Key classes: .btn, .btn-{color}, .btn-outline-{color}, .btn-sm, .btn-lg


4. Badges

Small count or labeling elements for notifications.

Primary Secondary Success Danger Warning Info
Pill Badges
Pill 99+ New
Badges in Buttons

Key classes: .badge, .bg-{color}, .rounded-pill


5. Cards

Flexible content containers with headers, footers, and images.

Featured
Card Title

Some quick example text to build on the card.

Go somewhere
Primary Card

A card with primary background color.

Success Border

A card with a success border.

Key classes: .card, .card-header, .card-body, .card-title, .card-text


6. Accordion

Collapsible content sections for organizing information.

This is the first item's accordion body. It is shown by default.

This is the second item's accordion body. Click to expand.

This is the third item's accordion body.

Key classes: .accordion, .accordion-item, .accordion-button, .accordion-collapse


7. Modal

A popup dialog box that overlays the current page.

Key classes: .modal, .modal-dialog, .modal-content, .modal-header, .modal-body, .modal-footer


8. Forms

Custom form controls with inputs, checkboxes, and selects.

Key classes: .form-control, .form-select, .form-check, .form-label


Quick Reference: All Components

Component Description
Navbar Responsive navigation header
Alerts Contextual feedback messages
Buttons Clickable buttons with styles
Badges Small count/label elements
Cards Flexible content containers
Accordion Collapsible content sections
Modal Popup dialog boxes
Forms Custom form controls
Carousel Slideshow for images/text
Dropdowns Toggleable action menus
Progress Progress bars with labels
Spinners Loading indicators
Toasts Lightweight notifications
Tooltips Hover text boxes