Editing tools

Text format

TextFormatStateIcon

Represents text format across regular, bold, italic states.

States

3 total

Regular text

Regular text.

Regular text

"regular"

Regular text.

Bold text

"bold"

Bold text.

Italic text

"italic"

Italic text.

Implementation

Pass your current state.

The component stays presentational. Your application remains in control of async work and business logic. The state prop is a TypeScript string literal union — pass an invalid state and you'll get a type error at build time.

Source
Lucide
License
ISC
States
regular · bold · italic
example.tsx
import { TextFormatStateIcon } from "@stateglyph/react";
<TextFormatStateIcon state="regular" decorative />