UNPKG

@wix/design-system

Version:

@wix/design-system

43 lines (39 loc) 1.29 kB
### children - type: ReactNode - description: Accepts any component as a child item. Usually it is a text string. ### type - type: BadgeType - description: Controls the appearance of a notification ### skin - type: BadgeSkin - description: Controls the appearance of a notification ### size - type: BadgeSize - description: Controls the size of the component ### prefixIcon - type: IconElement - description: Pass an icon or a component to display in front of the content ### suffixIcon - type: IconElement - description: Pass an icon or a component to display at the end of the content ### onClick - type: EventHandler<MouseEvent<HTMLElement, MouseEvent>> - description: Defines a click handler ### uppercase - type: boolean - description: Forces uppercase letters ### noPadding - type: boolean - description: Removes paddings from the component ### dataHook - type: string - description: Applies a data-hook HTML attribute to be used in the tests ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. ### showTooltip - type: boolean - description: Controls whether ellipsis tooltip is enabled. ### display - type: "block" | "inline" - description: Defines the display property of the component