# TextSessionState

`import { TextSessionState } from "destack:input/binding";`

Text input session state.

```ds title="TextSessionState"
export struct TextSessionState {
    text: string;
    selection: TextRange;
    composing: TextRange;
}
```

[language/library/src/input/binding/text.ds:91:98](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/text.ds#L91-L98)

## Members

### `text: string`

Full text state.

### `selection: TextRange`

Current selection range in UTF-16 code units.

### `composing: TextRange`

Current composing range in UTF-16 code units when composition is active.
