# When build with the UI Toolkit using components, How to enabled preview

**URL:** <https://devforum.zoom.us/t/when-build-with-the-ui-toolkit-using-components-how-to-enabled-preview/120837>\
**Category:** UI ToolKit\
**Tags:** video-sdk\
**Created:** [November 13, 2024, 8:11am UTC](https://devforum.zoom.us/t/when-build-with-the-ui-toolkit-using-components-how-to-enabled-preview/120837 "2024-11-13T08:11:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shizi0406](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shizi0406/32/62869_2.png) [@shizi0406](https://devforum.zoom.us/u/shizi0406)\
**Post date:** [November 13, 2024, 8:11am UTC](https://devforum.zoom.us/t/when-build-with-the-ui-toolkit-using-components-how-to-enabled-preview/120837/1 "2024-11-13T08:11:39Z")

</div>

When using the UI-toolkit and building with components, there is no documentation on how to enable preview. When I was using the normal mode, I only needed to pass ‘preview’ in the features array to turn it on. I want to know how to enable preview mode when using components for building.

thank you!

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [November 15, 2024, 5:52pm UTC](https://devforum.zoom.us/t/when-build-with-the-ui-toolkit-using-components-how-to-enabled-preview/120837/2 "2024-11-15T17:52:38Z")

</div>

Hi @shizi0406 ,

Have you passed through ‘preview’ to your features array (when using component view) and aren’t seeing it enabled? The implementation should be the same for component or composite build.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![shizi0406](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shizi0406/32/62869_2.png) [@shizi0406](https://devforum.zoom.us/u/shizi0406)\
**Post date:** [November 18, 2024, 2:19am UTC](https://devforum.zoom.us/t/when-build-with-the-ui-toolkit-using-components-how-to-enabled-preview/120837/3 "2024-11-18T02:19:49Z")

</div>

Yes, I have added it before, but it will give me an error as shown in the following picture. After canceling the ‘preview’ attribute, it can run normally. By the way, my operating environment is in React, I’m not sure if this is the reason for it。

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/9/09c71f5e252ef97a79cefa187ad0b180006d9ed5.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/a/5a58774ad5ea5e57c821e1f71303cf7ff16ecb43.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 10, 2025, 7:57pm UTC](https://devforum.zoom.us/t/when-build-with-the-ui-toolkit-using-components-how-to-enabled-preview/120837/4 "2025-02-10T19:57:00Z")

</div>

Hey @shizi0406 ,

This should be resolved now, can you try again with the latest version?

> **[Version 2.1.0-1 - Zoom Developers](https://developers.zoom.us/changelog/ui-toolkit/web/2.1.0-1/)**
>
> This update introduces several new features, including livestreaming, cloud recording, live transcription, PSTN/SIP call capabilities, session feedback, access to the Video SDK Client, and file sharing in chat. The Video SDK has been upgraded to...

Best,  
Tommy
