-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Text change events #298
Comments
It’s sounds interesting! Can you describe a use case for this feature, please? |
I haven't had much time to think about all the use cases for it yet, it's an idea that just popped into my head, but the initial idea is that this would allow for the development of This could be a nice escape hatch too for avoiding use of the Figma UI API (e.g. for performance to avoid the use of a WebSocket bridge). It could be really interesting to have "temporary" parts of a design such as checkboxes, buttons, text inputs that are rendered by a One idea, is that in code, you could have a system to help people populate mock-data into the document, where when you manually change the text to const TextPlaceholder = () => {
const [date, setDate] = useState('Enter date here');
return (
<Text onChangeText={(text) => setDate(moment(text).format())>
{date}
</Text>
);
} |
Hi, I'm wondering whether it would be possible to use the Figma API to implement more interactive events, such as
onChangeText
for<Text>
components?Maybe something like this would be possible with some runtime loop cycle, if Figma doesn't provide events.
The text was updated successfully, but these errors were encountered: