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

# white-space

APISummary
## Introduction

`white-space`CSS property sets how white space inside an element is handled.。

## Examples

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

**Entry:** `src/white-space`
**Bundle:** `dist/white-space.lynx.bundle`

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

const WhiteSpace = () => {
  const containerStyle = {
    width: "100%",
    height: "100%",
    flexDirection: "column" as const,
  };

  const normalTextStyle = {
    className: "item normal",
  };

  const nowrapTextStyle = {
    className: "item nowrap",
  };

  const sampleText =
    "But ere she from the church-door stepped She smiled and told us why: 'It was a wicked woman's curse,' Quoth she, 'and what care I?' She smiled, and smiled, and passed it off Ere from the door she stept—";

  return (
    <view style={containerStyle}>
      <text className="title">white-space: normal</text>
      <text className="item normal">
        {sampleText}
      </text>

      <text className="title">white-space: nowrap</text>
      <text className="item nowrap">
        {sampleText}
      </text>
    </view>
  );
};

root.render(<WhiteSpace />);

```

v0.11.0



## Syntax

```css
white-space: normal;

white-space: nowrap;
```

### Values

- `normal`
  **Default**
  No additional processing is performed on the text.

- `nowrap`
  Suppresses line breaks (text wrapping) within the source.

## Formal definition

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


## Formal syntax

```
normal | nowrap
```

## Differences from the Web

- Only support `normal` and `nowrap`

## Compatibility

**Compatibility Table**

**Query:** `css.properties.white-space`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| white-space | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`white-space`**

**Specifications:**

