# renderBarcodeSVG Function

> renderBarcodeSVG function in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > renderBarcodeSVG Function
- **298 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/renderbarcodesvg-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/renderbarcodesvg-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/renderbarcodesvg-function/llms-full.txt

---

Returns native SVG with a quiet zone. Default dimensions are 300×120 CSS pixels; each must be positive, finite and no greater than 12000.

Package: `@txtextcontrol/tx-sheet-control`.

### Syntax

```typescript
renderBarcodeSVG(options: BarcodeOptions, value?: string, width?: number, height?: number): string
```

### Example

Use an existing workbook as `book`.

```typescript
import { renderBarcodeSVG } from '@txtextcontrol/tx-sheet-control';
const svg = renderBarcodeSVG({ symbology: 'qrCode' }, 'ORDER-0001', 160, 160);
```

### Remarks

Standalone helpers do not read workbook cells. The value argument supplies the payload; when omitted, the encoder uses options.value or an empty string. Use cell or drawing barcode settings for live source bindings. EAN and UPC check digits are generated or validated. Invalid settings or nonempty payloads throw an error.

See [Barcodes and QR Codes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/barcodes/llms-full.txt) for supported payloads, quiet zones and examples.

---

## Nearby

- **Previous:** [encodeBarcode Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/encodebarcode-function/llms-full.txt)
- **Next:** [renderBarcodePNG Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/renderbarcodepng-function/llms-full.txt)
