# Expose component variable ID when "show dev information"

**URL:** <https://community.weweb.io/t/expose-component-variable-id-when-show-dev-information/5861>\
**Category:** Ask us anything\
**Created:** [December 10, 2023, 8:12pm UTC](https://community.weweb.io/t/expose-component-variable-id-when-show-dev-information/5861 "2023-12-10T20:12:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Pederson](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mark_pederson/32/14758_2.png) [@Mark\_Pederson](https://community.weweb.io/u/Mark_Pederson)\
**Post date:** [December 10, 2023, 8:12pm UTC](https://community.weweb.io/t/expose-component-variable-id-when-show-dev-information/5861/1 "2023-12-10T20:12:42Z")

</div>

It would be great if we could get the ID for the component variables - so we could use them in custom CSS and/or JS the way we can with global variables.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [December 12, 2023, 10:40am UTC](https://community.weweb.io/t/expose-component-variable-id-when-show-dev-information/5861/2 "2023-12-12T10:40:01Z")

</div>

Hi,  
that is on my todo list. The method to update variable will also be different (because the usual updateVariable is updating global variable, you need to access a special context method to update local variable)
