UNPKG

@wix/design-system

Version:

@wix/design-system

28 lines (24 loc) 837 B
### options - type: arrayOf - description: An array of options. Each option must have a unique `id`, a `text` and a `skin` whose value should match one of `<Badge/>`'s skin values ### selectedId - type: string - description: The id of the selected option in the list ### onSelect - type: func - description: Callback function called whenever the user selects a different option in the list ### size - type: enum - description: The size of the `<Badge/>` ### type - type: enum - description: The type of the `<Badge/>` ### uppercase - type: bool - description: Whether the text of the `<Badge/>` should be uppercase ### dataHook - type: string - description: Applied as data-hook HTML attribute that can be used to create driver in testing ### popoverProps - type: shape - description: common popover props