• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

MarginEnum

The possible values for the Default and Material themes are:

  • xsmall —Applies 4px margin.
  • small —Applies 8px margin.
  • medium —Applies 12px margin.
  • large —Applies 16px margin.
  • xlarge —Applies 24px margin.
  • thin —Applies 2px margin.
  • hair —Applies 1px margin.
  • number —Passing a number will apply a margin of 4 times the passed number in pixels. The minimum number value is 0 and the maximum is 24.

The possible values for the Bootstrap theme are:

  • xsmall —Applies 0.25rem margin.
  • small —Applies 0.5rem margin.
  • medium —Applies 0.75rem margin.
  • large —Applies 1rem margin.
  • xlarge —Applies 1.25rem margin.
  • thin —Applies 0.125rem margin.
  • hair —Applies 0.0625rem margin.
  • number —Passing a number will apply a margin equal to the passed number divided by 4 in rem units.

The minimum number value is 0 and the maximum is 24.

type MarginEnum = "xsmall" | "small" | "medium" | "large" | "xlarge" | "thin" | "hair" | number;

In this article

Not finding the help you need?