Skip to content

Instantly share code, notes, and snippets.

@assassinave
Created January 23, 2019 16:46
Show Gist options
  • Save assassinave/83956e7f2252d511b91f85e936c1e694 to your computer and use it in GitHub Desktop.
Save assassinave/83956e7f2252d511b91f85e936c1e694 to your computer and use it in GitHub Desktop.
Show value of input field in different output
import { Override, Data } from 'framer';
const dataText = Data({ text: 'Hello World!' });
export const TextChangingInput: Override = () => {
return {
onValueChange: (text: string) => {
dataText.text = text;
},
};
};
export const TextChangingOutput: Override = () => {
return {
text: dataText.text,
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment