Skip to content

Better use of controls in storybook for properties with specific values #535

Open
@bjarnef

Description

@bjarnef

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

1.3.0

Bug summary

Use specific components in storybook like radiobuttons and dropdown.

For some properties the components have specific valid options/values.
https://uui.umbraco.com/?path=/story/uui-color-picker--inline

E.g. in format and size properties of color picker.

Could we specific the storybook controls to use instead?
https://storybook.js.org/docs/7.0/react/essentials/controls

Specifics

No response

Steps to reproduce

Notice the properties for format and size properties of color picker is just shown as raw text input.
https://uui.umbraco.com/?path=/story/uui-color-picker--inline

Expected result / actual result

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions