Add property for controlling widget size #1340
Closed
last-partizan
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Is your question about the theme editor or FormKit itself? we wouldn't add a prop for this in the core of inputs itself, but you can easily do it with plugins. function addSizePluing(node) {
if (node.type !== 'input') return;
node.addProps(['size']);
// more logic to add size to outer class or sections schema.
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be awesome to have something like
:size="sm|md|lg"
to control widget size.Currently there's only "scale" when creating a theme in the Theme Editor.
I'm trying to use something like
:classes="mySmallDropdownClasses"
and it works fine, but having justsize="sm"
would be much better.Or, maybe there's better option to pass classes for a group of widgets?
Beta Was this translation helpful? Give feedback.
All reactions