Skip to main content
Version: 1.0.2

Spacer

Overview

The Spacer component adds consistent spacing between elements, without writing custom CSS or margin classes.

Preview

Installation

npx @mindfiredigital/ignix-ui add spacer

Usage

Import the component:

import { Spacer } from './components/ui';

Basic Usage

function BasicSpacer() {
return (
<>
<div className="bg-blue-500 w-16 h-8" />
<Spacer size="lg" direction="vertical" />
<div className="bg-red-500 w-16 h-8" />
</>
);
}

Variants