You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't seem to be able to make enum/dropdown controls. I've tried setting the control to a table, but this doesn't work.
Expected behavior
I'd like to be able to set up a dropdown list of options for a prop.
Steps to reproduce
Using typescript:
const controls = {
state: [State.A, State.B, State.C],
};
export = {
summary: "A generic button component that can be used anywhere",
roact: Roact,
controls: controls,
story: (props: { controls: typeof controls }) => {
return (
<Whatever
matchmakingState={props.controls.state}
/>
);
},
};
This syntax can't really work, but from looking at the code it seems as though something like this is supported, but nothing is documented for this.
The text was updated successfully, but these errors were encountered:
Describe the bug
I don't seem to be able to make enum/dropdown controls. I've tried setting the control to a table, but this doesn't work.
Expected behavior
I'd like to be able to set up a dropdown list of options for a prop.
Steps to reproduce
Using typescript:
The text was updated successfully, but these errors were encountered: