# pub.leaflet.blocks.html

> Published by [leaflet.pub](https://lexicon.garden/identity/did:plc:btxrwcaeyodrap5mnjw2fvmz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.blocks.html)
- [Documentation](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.blocks.html/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.blocks.html/examples)

## Definitions

### `pub.leaflet.blocks.html`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `html` | `string` | Yes | Inline HTML rendered via a sandboxed iframe's srcdoc attribute. |
| `height` | `integer` | No |  |
| `aspectRatio` | `ref` → `#aspectRatio` | No |  |

### `pub.leaflet.blocks.html#aspectRatio`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | Yes |  |
| `height` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "pub.leaflet.blocks.html",
  "defs": {
    "main": {
      "type": "object",
      "required": [
        "html"
      ],
      "properties": {
        "html": {
          "type": "string",
          "description": "Inline HTML rendered via a sandboxed iframe's srcdoc attribute."
        },
        "height": {
          "type": "integer",
          "maximum": 1600,
          "minimum": 16
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        }
      }
    },
    "aspectRatio": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
