package tw

  1. Overview
  2. Docs

Module Tw.AlignmentSource

Alignment utilities for flexbox and grid layouts

https://tailwindcss.com/docs/justify-content https://tailwindcss.com/docs/align-items https://tailwindcss.com/docs/align-content https://tailwindcss.com/docs/align-self https://tailwindcss.com/docs/place-content https://tailwindcss.com/docs/place-items https://tailwindcss.com/docs/place-self

Justify Content Utilities

Sourceval justify_start : Utility.t

justify_start justifies items to the start of the main axis.

Sourceval justify_end : Utility.t

justify_end justifies items to the end of the main axis.

Sourceval justify_center : Utility.t

justify_center centers items along the main axis.

Sourceval justify_between : Utility.t

justify_between distributes items with space between them.

Sourceval justify_around : Utility.t

justify_around distributes items with space around them.

Sourceval justify_evenly : Utility.t

justify_evenly distributes items with equal space around them.

Align Items Utilities

Sourceval items_start : Utility.t

items_start aligns items to the start of the cross axis.

Sourceval items_end : Utility.t

items_end aligns items to the end of the cross axis.

Sourceval items_center : Utility.t

items_center centers items along the cross axis.

Sourceval items_baseline : Utility.t

items_baseline aligns items along their baseline.

Sourceval items_stretch : Utility.t

items_stretch stretches items to fill the container (default).

Align Content Utilities

Sourceval content_start : Utility.t

content_start aligns content to the start.

Sourceval content_end : Utility.t

content_end aligns content to the end.

Sourceval content_center : Utility.t

content_center centers content.

Sourceval content_between : Utility.t

content_between distributes content with space between.

Sourceval content_around : Utility.t

content_around distributes content with space around.

Sourceval content_evenly : Utility.t

content_evenly distributes content evenly.

Sourceval content_stretch : Utility.t

content_stretch stretches content.

Sourceval content_baseline : Utility.t

content_baseline aligns content to baseline.

Sourceval content_normal : Utility.t

content_normal sets normal content alignment.

Sourceval content_center_safe : Utility.t

content_center_safe centers content with safe overflow.

Sourceval content_end_safe : Utility.t

content_end_safe aligns content to end with safe overflow.

Align Self Utilities

Sourceval self_auto : Utility.t

self_auto sets align-self to auto.

Sourceval self_start : Utility.t

self_start sets align-self to flex-start.

Sourceval self_end : Utility.t

self_end sets align-self to flex-end.

Sourceval self_center : Utility.t

self_center sets align-self to center.

Sourceval self_baseline : Utility.t

self_baseline sets align-self to baseline.

Sourceval self_stretch : Utility.t

self_stretch sets align-self to stretch.

Justify Items Utilities

Sourceval justify_items_start : Utility.t

justify_items_start justifies items to the start.

Sourceval justify_items_end : Utility.t

justify_items_end justifies items to the end.

Sourceval justify_items_center : Utility.t

justify_items_center justifies items to the center.

Sourceval justify_items_stretch : Utility.t

justify_items_stretch stretches items to fill.

Sourceval justify_items_normal : Utility.t

justify_items_normal uses the normal justification (the default).

Sourceval justify_items_center_safe : Utility.t

justify_items_center_safe justifies items to center with safe overflow.

Sourceval justify_items_end_safe : Utility.t

justify_items_end_safe justifies items to end with safe overflow.

Justify Self Utilities

Sourceval justify_self_auto : Utility.t

justify_self_auto uses automatic self justification.

Sourceval justify_self_start : Utility.t

justify_self_start justifies self to the start.

Sourceval justify_self_end : Utility.t

justify_self_end justifies self to the end.

Sourceval justify_self_center : Utility.t

justify_self_center justifies self to the center.

Sourceval justify_self_stretch : Utility.t

justify_self_stretch stretches self to fill.

Place Content Utilities

Sourceval place_content_start : Utility.t

place_content_start places content at the start.

Sourceval place_content_end : Utility.t

place_content_end places content at the end.

Sourceval place_content_center : Utility.t

place_content_center places content at the center.

Sourceval place_content_between : Utility.t

place_content_between places content with space between.

Sourceval place_content_around : Utility.t

place_content_around places content with space around.

Sourceval place_content_evenly : Utility.t

place_content_evenly places content with space evenly.

Sourceval place_content_stretch : Utility.t

place_content_stretch stretches content to fill.

Place Items Utilities

Sourceval place_items_start : Utility.t

place_items_start places items at the start.

Sourceval place_items_end : Utility.t

place_items_end places items at the end.

Sourceval place_items_center : Utility.t

place_items_center places items at the center.

Sourceval place_items_stretch : Utility.t

place_items_stretch stretches items to fill.

Sourceval place_items_baseline : Utility.t

place_items_baseline aligns items to baseline.

Sourceval place_items_center_safe : Utility.t

place_items_center_safe places items at center with safe overflow.

Sourceval place_items_end_safe : Utility.t

place_items_end_safe places items at end with safe overflow.

Place Self Utilities

Sourceval place_self_auto : Utility.t

place_self_auto uses automatic self placement.

Sourceval place_self_start : Utility.t

place_self_start places self at the start.

Sourceval place_self_end : Utility.t

place_self_end places self at the end.

Sourceval place_self_center : Utility.t

place_self_center places self at the center.

Sourceval place_self_stretch : Utility.t

place_self_stretch stretches self to fill.

Sourceval place_self_center_safe : Utility.t

place_self_center_safe places self at center with safe overflow.

Sourceval place_self_end_safe : Utility.t

place_self_end_safe places self at end with safe overflow.