From 17fcb1e9bf7ce97cd7cdd219e7b324cb3ce912cd Mon Sep 17 00:00:00 2001 From: garvitsingh171 Date: Sat, 15 Nov 2025 10:41:01 +0530 Subject: [PATCH] [docs][AppBar] Document correct default values for elevation and square props --- packages/mui-material/src/AppBar/AppBar.d.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/mui-material/src/AppBar/AppBar.d.ts b/packages/mui-material/src/AppBar/AppBar.d.ts index 73ce2173d1b694..81f80693d630bb 100644 --- a/packages/mui-material/src/AppBar/AppBar.d.ts +++ b/packages/mui-material/src/AppBar/AppBar.d.ts @@ -9,6 +9,17 @@ import { ExtendPaperTypeMap } from '../Paper/Paper'; export interface AppBarPropsColorOverrides {} export interface AppBarOwnProps { + /** + * Shadow depth, corresponds to `dp` in the spec. + * It accepts values between 0 and 24 inclusive. + * @default 4 + */ + elevation?: number; + /** + * If `false`, rounded corners are enabled. + * @default true + */ + square?: boolean; /** * Override or extend the styles applied to the component. */ @@ -49,7 +60,7 @@ export type AppBarTypeMap< props: AdditionalProps & AppBarOwnProps; defaultComponent: RootComponent; }, - 'position' | 'color' | 'classes' + 'position' | 'color' | 'classes' | 'elevation' | 'square' >; /**