Bubble
Leave feedbackRepresents the filled circle with a number of an icon, supporting the usual color variants
Basic Usage
Show editable code example
Any Paragon component or export may be added to the code example.
Disabled variant
Show editable code example
Any Paragon component or export may be added to the code example.
Expandable
In the case of long content use expandable prop. It adds padding to Bubble. Padding value is configurable through scss variables.
Show editable code example
Any Paragon component or export may be added to the code example.
Theme Variables (SCSS)#
$bubble-variants: ("success": ( "background-color": $success, "color": $white ),"warning": ( "background-color": $warning, "color": $white ),"error": ( "background-color": $danger, "color": $white ),"primary": ( "background-color": $primary, "color": $white ),) !default;$bubble-expandable-padding-x: .25rem !default;$bubble-expandable-padding-y: 0 !default;
Props API#
Bubble Props API
- children
nodeDefaultnullSpecifies contents of the component.
- variant
enum'primary' | 'success' | 'error' | 'warning'Default'primary'The
Bubblestyle variant to use. - disabled
boolDefaultfalseActivates disabled variant.
- className
stringA class name to append to the base element.
- expandable
boolDefaultfalseSpecifies whether to add padding to the
Bubbleor not.
Usage Insights#
Bubble
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 20.39.2 | 1 | |
| frontend-app-learner-portal-enterprise | 20.45.1 | 3 |