AvatarButton
A button that contains the user’s Avatar.
Basic Usage
With Dropdown
Props set on Dropdown.Toggle get passed through to the "as" component
No label
For use in mobile viewports or constrained views.
CSS overrides can be applied to this component through the .btn-avatar
class name.
Theme Variables (SCSS)#
$avatar-button-padding-left: .25em !default;$avatar-button-padding-left-sm: .25em !default;$avatar-button-padding-left-lg: .25em !default;
AvatarButton Props API
- children
string
RequiredThe button text
- className
string
RequiredA class name to append to the button
- showLabel
bool
RequiredDefaulttrueShow the label or only the avatar
- size
enum
Required'sm' | 'md' | 'lg'Default'md'The button size
- src
string
RequiredImage src of the avatar image
- variant
string
RequiredDefault'tertiary'The button style variant to use