Skip to content

Commit 75de3dc

Browse files
authored
fix: Update Box crossAlignment default value (#3133)
This PR updates the JSDoc for `Box` `crossAlignment` prop to omit default value
1 parent 27f1def commit 75de3dc

File tree

1 file changed

+5
-1
lines changed
  • packages/snaps-sdk/src/jsx/components

1 file changed

+5
-1
lines changed

packages/snaps-sdk/src/jsx/components/Box.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { createSnapComponent } from '../component';
77
* @property children - The children of the box.
88
* @property direction - The direction to stack the components within the box. Defaults to `vertical`.
99
* @property alignment - The alignment mode to use within the box. Defaults to `start`.
10-
* @property crossAlignment - The cross alignment mode to use within the box. Defaults to `start`.
10+
* @property crossAlignment - The cross alignment mode to use within the box.
1111
* @property center - Whether to center the children within the box. Defaults to `false`.
1212
*/
1313
export type BoxProps = {
@@ -32,6 +32,10 @@ const TYPE = 'Box';
3232
*
3333
* @param props - The props of the component.
3434
* @param props.children - The children of the box.
35+
* @param props.direction - The direction to stack the components within the box. Defaults to `vertical`.
36+
* @param props.alignment - The alignment mode to use within the box. Defaults to `start`.
37+
* @param props.crossAlignment - The cross alignment mode to use within the box.
38+
* @param props.center - Whether to center the children within the box. Defaults to `false`.
3539
* @returns A box element.
3640
* @example
3741
* <Box>

0 commit comments

Comments
 (0)