Refactored Chip

This commit is contained in:
Cagatay Civici 2024-04-08 00:49:16 +03:00
parent 4f0e836d2f
commit 2dffe28522
3 changed files with 17 additions and 21 deletions

View file

@ -1,14 +1,10 @@
import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => [
'p-chip p-component',
{
'p-chip-image': props.image != null
}
],
root: 'p-chip p-component',
image: 'p-chip-image',
icon: 'p-chip-icon',
label: 'p-chip-text',
label: 'p-chip-label',
removeIcon: 'p-chip-remove-icon'
};