hyphens

Class Description

hyphens-none

Prevents words from being hyphenated.

CSS Rules

.hyphens-none {
  -webkit-hyphens: none;
  hyphens: none;
}

Usage

<element class="hyphens-none" />

Responsive

Prefix .hyphens-none utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:hyphens-none" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="hyphens-none:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="hyphens-none:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before hyphens-none::before" />

<element class="content-after hyphens-none::after" />
.hyphens-none Prevents words from being hyphenated.

hyphens-manual

Allows hyphenation only where characters like &shy; are manually inserted.

CSS Rules

.hyphens-manual {
  -webkit-hyphens: manual;
  hyphens: manual;
}

Usage

<element class="hyphens-manual" />

Responsive

Prefix .hyphens-manual utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:hyphens-manual" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="hyphens-manual:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="hyphens-manual:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before hyphens-manual::before" />

<element class="content-after hyphens-manual::after" />
.hyphens-manual Allows hyphenation only where characters like &shy; are manually inserted.

hyphens-auto

Allows the browser to automatically hyphenate words based on language rules.

CSS Rules

.hyphens-auto {
  -webkit-hyphens: auto;
  hyphens: auto;
}

Usage

<element class="hyphens-auto" />

Responsive

Prefix .hyphens-auto utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:hyphens-auto" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="hyphens-auto:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="hyphens-auto:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before hyphens-auto::before" />

<element class="content-after hyphens-auto::after" />
.hyphens-auto Allows the browser to automatically hyphenate words based on language rules.