BlogPlaygroundOne

Density and sizing

The size and density props are used to reduce the overall space a component takes up, and sometimes font-size, height, padding, and margins.

Edit this page
Copy Page as Markdown

Guide

The size and density props are used to reduce the overall space a component takes up, and sometimes font-size, height, padding, and margins.

Size

This property reduces or increases the width and height a component takes up, as well as font-size.

  • x-small
  • small
  • default
  • large
  • x-large

Example

The following example shows the size for various components:

Buttons
Chips
Completed
Archived
New
Ratings


Avatars

Density

Reduces vertical padding and sometimes font size. Square/round components like icons will also reduce horizontal padding.

  • default
  • comfortable
  • compact

Example

The following example shows the density for various components:

Buttons
Chips
In Progress
High Priority
Assigned
Toolbars
Daily Reports
User Dashboard
Project Settings
Text Fields

Combined

Combine the size and density props to easily change the overall size of a component.

Example

The following example shows the size and density for various components:

default
default
Buttons
Chips
Complete
Reset
Disabled
Avatars

Ready for more?

Continue your learning with related content selected by the Team or move between pages by using the navigation links below.