From 62ffed16ea4d795319bd1b34ac06d85ffeef5976 Mon Sep 17 00:00:00 2001 From: Aleksey Kozlenkov Date: Sat, 29 Jun 2024 19:16:52 +0200 Subject: [PATCH] [material-ui][Alert] Add option to override slot props --- packages/mui-material/src/Alert/Alert.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/mui-material/src/Alert/Alert.d.ts b/packages/mui-material/src/Alert/Alert.d.ts index e69909af38ac95..3144d05f427986 100644 --- a/packages/mui-material/src/Alert/Alert.d.ts +++ b/packages/mui-material/src/Alert/Alert.d.ts @@ -9,8 +9,9 @@ import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types'; export type AlertColor = 'success' | 'info' | 'warning' | 'error'; export interface AlertPropsVariantOverrides {} - export interface AlertPropsColorOverrides {} +export interface AlertCloseButtonSlotPropsOverrides {} +export interface AlertCloseIconSlotPropsOverrides {} export interface AlertSlots { /** @@ -28,8 +29,8 @@ export interface AlertSlots { export type AlertSlotsAndSlotProps = CreateSlotsAndSlotProps< AlertSlots, { - closeButton: SlotProps, {}, AlertOwnerState>; - closeIcon: SlotProps, {}, AlertOwnerState>; + closeButton: SlotProps, AlertCloseButtonSlotPropsOverrides, AlertOwnerState>; + closeIcon: SlotProps, AlertCloseIconSlotPropsOverrides, AlertOwnerState>; } >;