# What's new in v2

The v2 of NUI is now available. This brings the following improvement

## Third Party Dependency

NUI is now available as a third-party dependency for easier updates and minified versions.

{% content-ref url="how-to-use" %}
[how-to-use](https://nui-for-anvil.gitbook.io/nui/how-to-use)
{% endcontent-ref %}

## New Image & Link Components

{% content-ref url="docs/components-and-properties" %}
[components-and-properties](https://nui-for-anvil.gitbook.io/nui/docs/components-and-properties)
{% endcontent-ref %}

## An Experimental HTML to NUI Converter

It is now possible to convert any HTML code into a proper Anvil form with NUI components.

{% content-ref url="html-to-nui-converter" %}
[html-to-nui-converter](https://nui-for-anvil.gitbook.io/nui/html-to-nui-converter)
{% endcontent-ref %}

## Experimental `true_html_structure` property

This property allows NUI containers to remove any Anvil wrappers from components added to it. This overrides the default `add_component` method, which may break things. (HTML to NUI converter also uses this property)

{% content-ref url="docs/components-and-properties" %}
[components-and-properties](https://nui-for-anvil.gitbook.io/nui/docs/components-and-properties)
{% endcontent-ref %}

## Designer-only Components

v2 introduces designer-only components that improve the Anvil designer experience.

{% content-ref url="docs/designer-only-components" %}
[designer-only-components](https://nui-for-anvil.gitbook.io/nui/docs/designer-only-components)
{% endcontent-ref %}

## Allow setting HTML attributes

You can now add any HTML attribute to NUI components

{% content-ref url="docs/using-attributes" %}
[using-attributes](https://nui-for-anvil.gitbook.io/nui/docs/using-attributes)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nui-for-anvil.gitbook.io/nui/whats-new-in-v2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
