@@ -69,7 +69,10 @@ export type BackgroundColors =
6969 | ColorsSurfaceTokenAlias ;
7070
7171export interface BoxProps {
72- /** HTML Element type */
72+ children ?: React . ReactNode ;
73+ /** HTML Element type
74+ * @default 'div'
75+ */
7376 as ?: Element ;
7477 /** Background color */
7578 background ?: BackgroundColors ;
@@ -91,7 +94,7 @@ export interface BoxProps {
9194 borderRadiusEndEnd ?: BorderRadiusTokenScale ;
9295 /** Vertical start horizontal start border radius */
9396 borderRadiusStartStart ?: BorderRadiusTokenScale ;
94- /** Verital start horizontal end border radius */
97+ /** Vertical start horizontal end border radius */
9598 borderRadiusStartEnd ?: BorderRadiusTokenScale ;
9699 /** Border width */
97100 borderWidth ?: ShapeBorderWidthScale ;
@@ -147,28 +150,26 @@ export interface BoxProps {
147150 * paddingInlineEnd={{xs: '2', sm: '3', md: '4', lg: '5', xl: '6'}}
148151 */
149152 paddingInlineEnd ?: Spacing ;
150- /** Shadow */
153+ /** Shadow on box */
151154 shadow ?: DepthShadowAlias ;
152155 /** Width of container */
153156 width ?: string ;
154- /** Elements to display inside box */
155- children ?: React . ReactNode ;
156157 // These could be moved to new layout component(s) in the future
157- /** Position of the box */
158+ /** Position of box */
158159 position ?: Position ;
159- /** Top position of the box */
160+ /** Top position of box */
160161 top ?: Spacing ;
161- /** Bottom position of the box */
162+ /** Bottom position of box */
162163 right ?: Spacing ;
163- /** Left position of the box */
164+ /** Left position of box */
164165 bottom ?: Spacing ;
165- /** Right position of the box */
166+ /** Right position of box */
166167 left ?: Spacing ;
167- /** Opcity of the box */
168+ /** Opacity of box */
168169 opacity ?: string ;
169170 /** Visually hide the contents (still announced by screenreader) */
170171 visuallyHidden ?: boolean ;
171- /** z-index of the box */
172+ /** z-index of box */
172173 zIndex ?: string ;
173174}
174175
0 commit comments