-
-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Description
Leva supports a couple of features that would be helpful to me, but that aren't really possible to use in replicad currently;
Folders (demo: https://leva.pmnd.rs/?path=/story/misc-folders--simple)
This would be helpful for organizing, grouping and collapsing related parameters. The data output for nested folders is still a flat list of parameters.
This would either require allowing user code to import leva's folder method, or would need some kind of static representation that replicad could parse and convert.
Conditional properties: https://leva.pmnd.rs/?path=/story/misc-input-options--render
This would be useful to hide or swap out one param for another, based on the value of another parameter.
This is enabled in leva with the render property on a parameter:
{
myValue: {
value: 5,
render: get => true // not actually conditional
},
actuallyConditionalValue: {
value: 10,
render: get => get('myValue') > 5
}
}
This isn't possible in replicad currently because the configuration becomes unserializable for postMessage
Metadata
Metadata
Assignees
Labels
No labels