Skip to main content
```language query_name
  content
```

Examples

Basic Usage

```language query_name
  content
```

Define a SQL query

```sql electronics_orders
  SELECT * FROM demo.daily_orders WHERE category = 'Electronics'
```

<!-- Use the query in other components -->
{% table data="electronics_orders" /%}

Attributes

language
string
The language of the code block
content
string
The content of the code block
meta
string
Optional name for the code block. If provided and language is “sql”, this will register the query as an inline query that can be used by other components. Inline queries must be defined at the top level of the page, not inside other components (e.g. tabs, accordion, details).
width
number
Set the width of this component (in percent) relative to the page width