Docs Menu unfold_more

Alerts

Alerts are used to attract user's attention for important information without interrupting the user's flow.

Alert with text, link and icon.

There are five types of alert: primary, secondary, success, warning and error. Refer below and use the respective classes to get the desired alert.

This is a Primary alert
This is a Secondary alert with - an example link
check_circle This is a Success alert
warningThis is a Warning alert
errorThis is a Danger alert

Alert Dismiss.

Alert can have cross icon to close the alert. Check out html and vanilla JS code below.

This is a Primary alert cancel

Javascript Code


Avatar

Avatar can be used to show user's profile picture on profile information page, on navigation bar, in blogs grid items etc.

Avatar with Image

Avatar have four sizes: x-small, small, medium and large respectively. You also need to add Responsive Image class names for img element.

Refer to code snippet to get the desired avatar size.

avatar-sample-image-x-small
avatar-sample-image-small
avatar-sample-image-medium
avatar-sample-image-large

Avatar with Text

If profile photo is not provided, then Text avatar is used to show users initials on profile page.

Just like avatar, text avatar have four sizes: x-small, small, medium, large.

xsm
SM
MD
LG

Badge

Badges are generally used to display status information or notifications count.

Badge on Avatar

Below examples show the Badges on Avatar for displaying status information.

avatar-sample-image circle
avatar-sample-image circle
avatar-sample-image circle
avatar-sample-image circle

Badge on Icons

Below examples show the Badges on Icons for displaying notifications count information.

home 2

notifications4

shopping_cart8

email 5


Buttons

Buttons allow user's to perform multiple actions on a website, from triggering actions to accessing different parts of a website.

They are also called as CTA- Call to Action.

Primary & link Button

There are three types of button primary solid, outline and simple link button. To use desired buttons, refer the code below.

Icon Button

You can use icon with button as follows

Floating Action Button

Floating action button is fixed to screen to perform some function like create a post, scroll to top etc.


Cards Component

Cards contain content and actions about a single subject.

Cards with badges & dismiss

Below cards are in vertical aligment, they consists of badges like 'Best Seller', 'New' and Dismiss Button.

Best Seller

TrustBasket Organic Vermicompost Fertilizer Manure for Plants - 5 KG

favorite_border

3.5 star

₹332

₹349

5% off

shopping_cart Add to Cart
NEW close

TrustBasket Enriched organic Earth Magic Potting Soil Fertilizer for Plants, 5 Kg

favorite_border

3.5 star

₹345

₹360

6% off

shopping_cart Add to Cart

Cards with text overlay & Text Only Card

The below cards have text overlay effect which is used for showing the product sold out & and text only card without any image.

Out of Stock

TrustBasket Organic Vermicompost Fertilizer Manure for Plants - 5 KG

favorite_border

3.5 star

₹332

₹349

5% off

shopping_cart Add to Cart

Kraft Seeds Agro Peat/Coco Peat (1 KG)

favorite_border

3.5 star

₹345

₹360

6% off

shopping_cart Add to Cart

Horizontal Cards

The below cards are in horizontal format.

TrustBasket Organic Vermicompost Fertilizer Manure for Plants - 5 KG

3.5 star

favorite_border

₹332

₹349

5% off

shopping_cart Add to Cart

TrustBasket Enriched organic Earth Magic Potting Soil Fertilizer for Plants, 5 Kg

3.5 star

favorite_border

₹345

₹360

6% off

shopping_cart Add to Cart

Images

Images can be responsive to fit the parent's width, and also can be customised to be round shaped

Responsive Image

You can add class 'img-responsive' to make image responsive.

responsive-image

Round Image

You can have round image using 'img-round' class & use class 'img-lg' for large size, 'img-xlg' for x-large size

round-image round-image

Form: Input Components with Error Validation

Inputs are used to get the Valid data from User.

Below example shows a form where various types of inputs such as text-field, Drop-Down, Radio-Button,check-box are used & also shows the success and error message on input validation.


Javascript Code


Lists

Lists are used to group together related pieces of information so they are clearly associated with each other and easy to read.

Spaced Lists

Spaced list is used to display list in same line for eg. navigation menu.

  • List Item 1
  • List Item 2
  • List Item 3

Stacked Lists with title & text

Stacked list is used to show notification section.

  • List Item 1

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae, praesentium.

  • List Item 2

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae, praesentium.

  • List Item 3

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae, praesentium.

  • List Item 4

    Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae, praesentium.

Stacked Lists with title only

  • List Item 1

  • List Item 2

  • List Item 3


The modal component provides a solid foundation for creating dialogs, popovers, lightboxes, or whatever else.

Modal Demo

Javascript Code


Ratings

Ratings are used in product reviews, 1 to 5 star indicates Very-Bad to Excellent product experience.

In below example 5 star ratings is shown along with the display of experience word on click of particular star.

Rate this Product

star_rate star_rate star_rate star_rate star_rate

Javascript Code


Navigation bar is used to navigate through the web apps or websites and their pages.


Grid Component

CSS Grid is a powerful tool that allows for two-dimensional layouts to be created on the web.

Grid 2 Column Layout

My Journey of life

Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint, facere!

Grid 3 Column Layout

Grid 3 Column Layout

Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint, facere!


Snackbar Component

Snackbars provide brief messages about app processes at the bottom of the screen.

Snackbar Baseline & Snackbar Leading

Can't send photo. Retry in 5 seconds.
close
Your photo has been archived.
close

Click below buttons to see Snackbar Demo

Can't send photo. Retry in 5 seconds.
close
Your photo has been archived.
close

Javascript Code


Text Utilities

Below are the text utilities styles

Headings

Below are five heading styles from h1 to h5

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Small text, Grey Text

Small text and gray text is used for secondary or less important information

This is a large size paragraph

This is a medium size paragraph

This is a small size paragraph

This is a large size paragraph

This is a medium size paragraph

This is a small size paragraph

Text with alignments

To align the text add 'text-left', 'text-center', 'text-right' class to its wrapper element.

Text Align Left

Text Align Center

Text Align Right

arrow_upward