variant | 'small' | 'medium' | 'large' | 'medium' | Creates a smaller or larger badge. Has no effect if the size prop is set |
size | number | | Sets the size of the badge in pixels. Overrides the variant prop when set |
inline | boolean | false | Styles the badge to display: inline |
sx | SystemStyleObject | | Style overrides to apply to the component. See also overriding styles. |
as | React.ElementType | "div" | The underlying element to render — either a HTML element name or a React component. |
ref | React.RefObject<HTMLDivElement> | | A ref to the element rendered by this component. Because this component is polymorphic, the type will vary based on the value of the as prop. |
Additional props are passed to the <div> element. See for a list of props accepted by the <div> element. If an as prop is specified, the accepted props will change accordingly. |