Skip to content

Commit

Permalink
feat: add placeItems prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Wurielle committed Jan 2, 2025
1 parent a9b7144 commit ce94d3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/layout/box/box.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const boxPropsDefinition = defineProps(({ optional }) => ({
cursor: optional<Properties['cursor']>(),
pointerEvents: optional<Properties['pointerEvents']>(),
userSelect: optional<Properties['userSelect']>(),
placeItems: optional<Properties['placeItems']>(),
}))

export type BoxPropsDefinition = typeof boxPropsDefinition
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/components/layout/box/box.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const StBox = styled('div')<StyledProps<BoxPropsWithDefaults>>((context)
cursor,
pointerEvents,
userSelect,
placeItems,
},
} = context
return [
Expand All @@ -71,6 +72,9 @@ export const StBox = styled('div')<StyledProps<BoxPropsWithDefaults>>((context)
!isUndefined(display) && {
display,
},
!isUndefined(placeItems) && {
placeItems,
},
!isUndefined(basis) && {
flexBasis: basis === 'full' ? '100%' : getRemValue(basis),
},
Expand Down

0 comments on commit ce94d3f

Please sign in to comment.