<!-- This file is auto-generated by the docs:generate-viewhelper-docs command. Do not edit directly -->

# ui:id

**Reference:** [View Source](https://github.com/jramke/fluid-primitives/tree/main/Classes/ViewHelpers/IdViewHelper.php)

Generates a base36 identifier that is unique per request.

This is used internally for the default value for the `rootId` prop in components. Its exposed as a ViewHelper for convenience. This ViewHelper can be used whenever you need a unique ID in your templates and should not be used for cryptographic purposes.

## Example
```html
<f:variable name="myId">{ui:id()}</f:variable>
```
this will generate a unique id like `«f4»`

## Arguments

| Name | Type | Description | Required | Default |
|------|------|-------------|----------|--------|
| `prefix` | string | The prefix of the generated ID | No | 'f' |
