---
title: "rMQR Code"
description: "A thin, wide QR code for strips where a square does not fit: cable tags, tray edges, and sample tubes. It is 7 to 17 modules high."
url: https://gelatinui.com/components/rmqr-code
markdown_url: https://gelatinui.com/components/rmqr-code.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/rmqr-code"
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# rMQR Code

> A thin, wide QR code for strips where a square does not fit: cable tags, tray edges, and sample tubes. It is 7 to 17 modules high.

Page: https://gelatinui.com/components/rmqr-code

## When to use it

Best for: An ID or a short link on a thin strip, where a square code does not fit.

- Use it on a tag or label that is long and low.
- Use `pixelSize` to set the outer width. The height follows the symbol.
- Use `plate={false}` on a white label.

## When not to use it

- For a plain number that every scanner reads, use a 1D [Barcode](https://gelatinui.com/components/barcode.md).
- For the facts in words next to the code, add a [Data List](https://gelatinui.com/components/data-list.md).

## Notes for agents

- `fit` fills the width of the parent, in whole px a module when that loses one module or less.
- etiket picks the symbol from the data: 7 to 17 modules high, up to 139 wide. The quiet zone is 2 modules.
- About 130 bytes is the most it holds. Too much data shows a help line, not a code.
- Many phone cameras do not read rMQR yet. Check the scanner the app uses.
- `status` sets loading and empty. `onError` gets the error.

## Anatomy

```text
RmqrCode
```

## API reference

### RmqrCode

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `aria-label` | `string` |  | Defines a string value that labels the current element. The accessible name. Default the kind ("Data Matrix code"), or "<kind>: <value>" for a link. |
| `value` | `string` |  | The data etiket encodes. The data: a short link or an ID. Default width 320px. |
| `pixelSize` | `number` |  | The outer width in px, quiet zone included. The height follows the symbol. |
| `fit` | `boolean` |  | Fill the width of the parent, in whole px a module when that loses one module or less (the QR Code rule), else the exact width. Default false. Wide codes (postal, PDF417) on a phone. |
| `plate` | `boolean` |  | The light plate under the code. Default true. |
| `status` | `DataStatus` |  | The load state. Default `ready`. `loading`: the skeleton while the value is not known yet. `empty`: the empty box. `error` shows as `ready`: the error box is for a value the code cannot hold. |
| `labels` | `Partial<CodeSymbolLabels>` |  | The texts of the empty and error states. |
| `onError` | `function` |  | Runs once for each new error (too much data, a character the kind cannot hold), after commit. It does not run again for the same error, and typed values are deferred: a field that shows the error should derive it from the value with the kind's encoder (cached, so free), not clear it on each change. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| RmqrCode | `rmqr-code` |  |  |  |

## Usage

Pass the ID and the width.

```tsx title="cable-code.tsx"
import { RmqrCode } from "@/components/pro/labels/rmqr-code";

export function CableCode() {
  return <RmqrCode value="LJU1-R12-U40-P07" pixelSize={252} aria-label="Cable code" />;
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/rmqr-code
```

It adds 17 registry items: 16 files, 2058 lines, and the npm packages `@mantine/hooks`, `clsx`, `etiket`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Barcode](https://gelatinui.com/components/barcode.md)
- [Data List](https://gelatinui.com/components/data-list.md)
- [Frame](https://gelatinui.com/components/frame.md)

## Accessibility

It is an image named "rMQR code" by default. Pass `aria-label` to say what it holds, for example "Cable code LJU1-R12-U40-P07".

Show the ID as text next to the code, so people can read it too.
