Coming Soon

We're sorry, but this feature is not yet available. We are working hard to make it happen as soon as possible. Thank you for your patience and understanding. Please check back later for updates.

Just a demo

The element you clicked is for demonstration purposes only and does not lead to actual content. Everything you see here is a simulation intended to demonstrate how the UI elements might look and behave in a real application.

Padding

A collection of utility classes to add spacing between elements and their content.

Usage

Note If you are not using Tailwind CSS, you can skip this step. On your tailwind.config.js file, add the Padding component within the ui() plugin.

import ui from "franken-ui";
 
ui({
    components: {
        padding: {
            hooks: {},
            media: true
        }
    }
}),

To apply this component, add one of the following classes to a block element.

ClassDescription
.uk-paddingAdds default padding to the element.
.uk-padding-smallAdds small padding to the element.
.uk-padding-largeAdds large padding to the element.
<div class="uk-padding"></div>
Copy to clipboard
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  • <div class="uk-width-1-2@s uk-padding uk-background-muted">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
      incididunt ut labore et dolore magna aliqua.
    </div>

Remove padding

In some cases you want to remove padding from an element, rather than adding it. To do so, apply one of the following classes.

ClassDescription
.uk-padding-removeRemoves all padding from an element.
.uk-padding-remove-topRemoves top padding from an element.
.uk-padding-remove-bottomRemoves bottom padding from an element.
.uk-padding-remove-leftRemoves left padding from an element.
.uk-padding-remove-rightRemoves right padding from an element.
.uk-padding-remove-verticalRemoves top and bottom padding from an element.
.uk-padding-remove-horizontalRemoves left and right padding from an element.