# Can I Pass Dimensions Back to a Component / Dynamically Adjust Data Based on Dimension?

**URL:** <https://community.embeddable.com/t/can-i-pass-dimensions-back-to-a-component-dynamically-adjust-data-based-on-dimension/127>\
**Category:** FAQs\
**Created:** [June 11, 2025, 2:36pm UTC](https://community.embeddable.com/t/can-i-pass-dimensions-back-to-a-component-dynamically-adjust-data-based-on-dimension/127 "2025-06-11T14:36:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris-Embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/chris-embeddable/32/24_2.png) [@Chris-Embeddable](https://community.embeddable.com/u/Chris-Embeddable)\
**Post date:** [June 11, 2025, 2:36pm UTC](https://community.embeddable.com/t/can-i-pass-dimensions-back-to-a-component-dynamically-adjust-data-based-on-dimension/127/1 "2025-06-11T14:36:35Z")

</div>

Short answer: Yes!

Somewhat longer and more useful answer: Yes, but you’ll need to create custom code to do so. You’ll want to convert the list of dimensions to a JSON.stringified object, save them in state with useEmbeddableState, and convert them back again for use in the .emb.ts file.

You can see an example pull request implementing this logic here:

> <https://github.com/embeddable-hq/vanilla-components/pull/247/files>
>
> This branch is a quick implementation of a dimension select component and shows …how to modify existing components to use it. Note that this hasn't undergone significant testing or code cleanup yet, and is only a proof of concept.
