Skip to content

Commit eaed9d1

Browse files
committed
Add prop for Box and update What's New
1 parent d38940b commit eaed9d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
1111

1212
## January 2025
1313

14-
- Documented Snaps [`Banner`](/snaps/features/custom-ui/#banner), [`Container`](/snaps/features/custom-ui/#container), [`Footer`](/snaps/features/custom-ui/#footer), and [`Value`](/snaps/features/custom-ui/#value) UI components.
14+
- Documented Snaps [`Banner`](/snaps/features/custom-ui/#banner), [`Container`](/snaps/features/custom-ui/#container), [`Footer`](/snaps/features/custom-ui/#footer), [`Skeleton`](/snaps/features/custom-ui/#skeleton), and [`Value`](/snaps/features/custom-ui/#value) UI components.
1515
([#1835](https://github.com/MetaMask/metamask-docs/pull/1835))
1616

1717
## December 2024

snaps/features/custom-ui/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ Outputs a box, which can be used as a container for other components.
244244
- `alignment` - (Optional) The alignment of the elements inside the box.
245245
Possible values are `"start"`, `"center"`, `"end"`, `"space-between"`, and `"space-around"`.
246246
The default is `"start"`.
247+
- `center`: `boolean` - (Optional) whether to center the children within the box.
248+
Defaults to `false`.
247249
248250
#### Example
249251
@@ -258,6 +260,7 @@ module.exports.onHomePage = async () => {
258260
<Box
259261
direction="horizontal"
260262
alignment="space-around"
263+
center="true"
261264
>
262265
<Text>Feature 1</Text>
263266
<Text>Feature 2</Text>

0 commit comments

Comments
 (0)