Skip to content

Commit c964e71

Browse files
committed
feat(VAlert): easy control over icon size
1 parent 5fcd4c4 commit c964e71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/vuetify/src/components/VAlert/VAlert.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export const makeVAlertProps = propsFactory({
6060
type: [Boolean, String, Function, Object] as PropType<false | IconValue>,
6161
default: null,
6262
},
63+
iconSize: {
64+
type: Number,
65+
default: null,
66+
},
6367
modelValue: {
6468
type: Boolean,
6569
default: true,
@@ -189,7 +193,7 @@ export const VAlert = genericComponent<VAlertSlots>()({
189193
key="prepend-icon"
190194
density={ props.density }
191195
icon={ icon.value }
192-
size={ props.prominent ? 44 : 28 }
196+
size={ props.iconSize ?? (props.prominent ? 44 : 28) }
193197
/>
194198
) : (
195199
<VDefaultsProvider

0 commit comments

Comments
 (0)