# preview_env

URL: https://lbliii.github.io/chirp-ui/api/preview_env/
Section: api
Description: Kida preview environment for offline macro rendering.

Used by the blocks-gallery generator and component render tests. Mirrors the
Chirp runtime stubs registered in ``tests/conftest.py`` so manifest usage
snippets can be rendered without a full Chirp app.

---

> For a complete page index, fetch https://lbliii.github.io/chirp-ui/llms.txt.

Kida preview environment for offline macro rendering.

Used by the blocks-gallery generator and component render tests. Mirrors the
Chirp runtime stubs registered in`tests/conftest.py`so manifest usage
snippets can be rendered without a full Chirp app.

preview_env

Name

Type

Default

Description

`type`

``

—

`qualified_name`

``

—

`element_type`

``

—

`description`

``

—

`source_file`

``

—

`line_number`

``

—

`is_autodoc`

``

—

`autodoc_element`

``

—

`_autodoc_template`

``

—

`_autodoc_url_path`

``

—

`_autodoc_page_type`

``

—

`title`

``

—

`doc_content_hash`

``

—

## Symbols on this page

function
make_preview_env

Return a Kida environment wired for chirp-ui template previews.

Jump to symbol

(#make_preview_env)

make_preview_env

function

```
def make_preview_env() -> Environment
```

Return a Kida environment wired for chirp-ui template previews.

No parameters.

View source · /home/runner/work/chirp-ui/chirp-ui/site/../src/chirp_ui/preview_env.py:1
(https://github.com/lbliii/chirp-ui/blob/main//home/runner/work/chirp-ui/chirp-ui/site/../src/chirp_ui/preview_env.py#L1)
