Skip to content

Commit

Permalink
feat(Checkbox): add indeterminate state to icon slot scope
Browse files Browse the repository at this point in the history
This adds the indeterminate state to the icon slot of the component so user will be able to customize the indeterminate icon.
  • Loading branch information
m-meier authored Jun 21, 2024
1 parent 64a749c commit 197715f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
v-bind="getPTOptions('input')"
/>
<div :class="cx('box')" v-bind="getPTOptions('box')">
<slot name="icon" :checked="checked" :class="cx('icon')">
<slot name="icon" :checked="checked" :indeterminate="d_indeterminate" :class="cx('icon')">
<CheckIcon v-if="checked" :class="cx('icon')" v-bind="getPTOptions('icon')" />
<MinusIcon v-else-if="d_indeterminate" :class="cx('icon')" v-bind="getPTOptions('icon')" />
</slot>
Expand Down

0 comments on commit 197715f

Please sign in to comment.