primevue-mirror/components/lib/avatar/style/AvatarStyle.js

21 lines
489 B
JavaScript

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => [
'p-avatar p-component',
{
'p-avatar-image': props.image != null,
'p-avatar-circle': props.shape === 'circle',
'p-avatar-lg': props.size === 'large',
'p-avatar-xl': props.size === 'xlarge'
}
],
label: 'p-avatar-label',
icon: 'p-avatar-icon'
};
export default BaseStyle.extend({
name: 'avatar',
classes
});