StellarAdmin

Group

Arrange elements and components within a horizontal flex container.

Usage

<sa-group>...</sa-group>

Examples

Gap

Control the horizontal gap between items with the gap attribute. You can specify a custom gap by adding a class from Tailwind's gap- utility.

<p>Extra small</p>
<sa-group gap="ExtraSmall" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Small</p>
<sa-group gap="Small" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Default</p>
<sa-group class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Large</p>
<sa-group gap="Large" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Extra large</p>
<sa-group gap="ExtraLarge" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>

Justify

Control how items are positioned along a group's horizontal axis.

<p>Start</p>
<sa-group justify="Start" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Center</p>
<sa-group justify="Center" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>End</p>
<sa-group justify="End" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Justify between</p>
<sa-group justify="SpaceBetween"
           class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>
<p>Justify around</p>
<sa-group justify="SpaceAround" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">01</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">02</div>
    <div class="flex items-center justify-center rounded-lg bg-indigo-500 p-4">03</div>
</sa-group>

Align

Control how items are positioned along a group's vertical axis.

<p>Stretch</p>
<sa-group align="Stretch" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-4">01</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-12">02</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-8">03</div>
</sa-group>
<p>Start</p>
<sa-group align="Start" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-4">01</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-12">02</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-8">03</div>
</sa-group>
<p>Center</p>
<sa-group align="Center" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-4">01</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-12">02</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-8">03</div>
</sa-group>
<p>End</p>
<sa-group align="End" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-4">01</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-12">02</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 py-8">03</div>
</sa-group>
<p>Baseline</p>
<sa-group align="Baseline" class="font-mono text-sm leading-6 font-bold text-white bg-indigo-100 rounded">
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 pt-2 pb-6">01</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 pt-8 pb-12">02</div>
    <div class="flex flex-1 items-center justify-center rounded-lg bg-indigo-500 pt-12 pb-4">03</div>
</sa-group>