Parameters / Components question / feature request

Finding out about the various options for what type's are available for parameters got me thinking how some of them could be used.

It seems to me that some of the types are not super usable at the moment, for example the placement or dimension, as dynamic content is not currently available in Element CSS or within controls like flex box or margin. Is there intention to add that kind of access / application of dynamic content in the future?

Related to this, an awesome feature to have would be to single out certain controls from an element and add them to the parameters section of a component.

This could allow a client user to access built-in controls like padding or background colour, without getting confused or breaking any other controls.

@arthurodb,

I’ve got some good news for you. Dynamic Content now works in most styling controls (including padding and margin), and with this release even Element CSS! Additionally, you can use the Dev Toolkit to pipe Dynamic Content into harder to reach controls like the flexbox pickers. It will make the Inspector UI look broken, so use with care.

Related to this, an awesome feature to have would be to single out certain controls from an element and add them to the parameters section of a component.

We’re talked about this before, but there just isn’t a clean way to siphon out specific controls. Parameters you get most of the way there and also have the benefit of being accessible in nested elements, so we don’t plan on implementing this kind of approach.

Here’s some general thoughts on how I see Parameters in relation to how elements work:

  • Parameters are excellent to manage all forms of Content. Text, links, images, looped items (when lists are fixed)
  • Parameters are good at simple styling changes like spacing, and colors
  • Parameters are not so good at managing complex styling. Dynamic Content in Element CSS alleviates this somewhat

We’re definitely looking for ways to reduce that friction. At some point we’ll introduce an update where most of the controls will be ctrl/cmd clickable, which would reveal a text input where you can write in anything you want overriding the original nature of the control. This should work for things like icons, and the flex pickers. There are some cases like the border control where this won’t be possible.

1 Like