> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# word-break

APISummary
## Introduction

Used to specify how to break lines within a word.

## Examples

**This is an example below: css-api**

**Entry:** `src/word-break`
**Bundle:** `dist/word-break.lynx.bundle`

```tsx
import { root } from "@lynx-js/react";
import "./index.scss";

const WordBreak = () => {
  const normalBreakStyle = {
    overflow: "hidden",
    wordBreak: "normal",
  } as const;

  const breakAllStyle = {
    overflow: "hidden",
    wordBreak: "break-all",
  } as const;

  return (
    <view className="container">
      <text text-maxline="1" style={normalBreakStyle}>
        Hello, Lynx!Hello, Lynx!Hello, Lynx!
      </text>
      <text text-maxline="1" style={breakAllStyle}>
        Hello, Lynx!Hello, Lynx!Hello, Lynx!
      </text>
    </view>
  );
};

root.render(<WordBreak />);

```

v0.11.0



## Syntax

```css
word-break: break-all;
word-break: normal;
```

### Values

- `normal`
  **Default value**. Use the default line break rule.

- `break-all`
  Lines can be interrupted in any character.

- `keep-all`
  Word breaks should not be used for Chinese/Japanese/Korean (CJK) text.

## Formal definition

| Initial value | normal |
| Applies to | text |
| Inherited | no |
| Animatable | no |


## Formal syntax

```
normal | break-all | keep-all
```

## Differences from the Web

- [mdn:word-break](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break)

## Compatibility

**Compatibility Table**

**Query:** `css.properties.word-break`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/122-word-break.json) · [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| word-break | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`word-break`**

**Specifications:**

