Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to connect with layout properties? #197

Open
Tiberriver256 opened this issue Oct 25, 2024 · 2 comments
Open

Is it possible to connect with layout properties? #197

Tiberriver256 opened this issue Oct 25, 2024 · 2 comments

Comments

@Tiberriver256
Copy link

Hello,

Is it possible to connect with layout properties? If so, is it also possible to get variable names?

image

@tomduncalf-figma
Copy link
Contributor

Hey @Tiberriver256, this isn't currently possible. It would be interesting to know a bit more about your use case, i.e. what do you want to access and why is it not a component prop? We're definitely interested to support as many use cases as possible.

@Tiberriver256
Copy link
Author

Thanks @tomduncalf-figma!

Our designer uses layout properties and consistent variables quite a bit. We have props laid out on our React components that match the design variables similar to how React Spectrum uses styles and would like to map those values to his.

So for this screenshot:
image

I would want to see a code connect snippet that looked something like:

<MyComponent 
    padding-top="3"
    padding-right="5"
    padding-bottom="3"
    padding-left="5"
    radius="m" />

The idea being that we could copy the code-snippet from figma and it would look identical to the design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants