Skip to content

Commit

Permalink
feat: add small (sizing) option to CvTag component
Browse files Browse the repository at this point in the history
  • Loading branch information
caioafc committed Sep 13, 2023
1 parent da1d481 commit 125d054
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/CvTag/CvTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export default {
* skeleton used when loading
*/
skeleton: Boolean,
/**
* tag size small
*/
small: Boolean,
},
emits: [
/**
Expand All @@ -71,6 +75,8 @@ export default {
const tagClasses = computed(() => {
const classes = [`${carbonPrefix}--tag`];
if (props.small) classes.push(`${carbonPrefix}--tag--sm`);
if (props.skeleton) {
classes.push(`${carbonPrefix}--skeleton`);
} else {
Expand Down

0 comments on commit 125d054

Please sign in to comment.