Skip to content

Commit b2c5b43

Browse files
committed
Minor refactoring
1 parent 4ef3253 commit b2c5b43

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { createSnapComponent } from '../component';
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`.
1010
* @property center - Whether to center the children within the box. Defaults to `false`.
11+
* @property backgroundColor - Whether the Box needs color adjustments. Defaults to undefined.
1112
*/
1213
export type BoxProps = {
1314
// We can't use `JSXElement` because it causes a circular reference.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const TYPE = 'Container';
2727
* @param props.children - The Box and the Footer or the Box element.
2828
* @returns A container element.
2929
* @example
30-
* <Container backgroundColor="ContainerBackgroundColor.Alternative">
30+
* <Container backgroundColor="default">
3131
* <Box>
3232
* <Text>Hello world!</Text>
3333
* </Box>

0 commit comments

Comments
 (0)