Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/snaps-sdk/src/jsx/components/Box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { createSnapComponent } from '../component';
* @property children - The children of the box.
* @property direction - The direction to stack the components within the box. Defaults to `vertical`.
* @property alignment - The alignment mode to use within the box. Defaults to `start`.
* @property crossAlignment - The cross alignment mode to use within the box. Defaults to `start`.
* @property crossAlignment - The cross alignment mode to use within the box.
* @property center - Whether to center the children within the box. Defaults to `false`.
*/
export type BoxProps = {
Expand All @@ -32,6 +32,10 @@ const TYPE = 'Box';
*
* @param props - The props of the component.
* @param props.children - The children of the box.
* @param props.direction - The direction to stack the components within the box. Defaults to `vertical`.
* @param props.alignment - The alignment mode to use within the box. Defaults to `start`.
* @param props.crossAlignment - The cross alignment mode to use within the box.
* @param props.center - Whether to center the children within the box. Defaults to `false`.
* @returns A box element.
* @example
* <Box>
Expand Down
Loading