Skip to content

Commit

Permalink
feat(VAlert): easy control over icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Sek committed Nov 14, 2024
1 parent 92d8b5a commit 8675c75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vuetify/src/components/VAlert/VAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export const makeVAlertProps = propsFactory({
type: [Boolean, String, Function, Object] as PropType<false | IconValue>,
default: null,
},
iconSize: {
type: Number,
default: null,
},
modelValue: {
type: Boolean,
default: true,
Expand Down Expand Up @@ -189,7 +193,7 @@ export const VAlert = genericComponent<VAlertSlots>()({
key="prepend-icon"
density={ props.density }
icon={ icon.value }
size={ props.prominent ? 44 : 28 }
size={ props.iconSize ?? (props.prominent ? 44 : 28) }
/>
) : (
<VDefaultsProvider
Expand Down

0 comments on commit 8675c75

Please sign in to comment.