Skip to content

Commit

Permalink
add BoxProps to Container type (#1465)
Browse files Browse the repository at this point in the history
* add BoxProps to Container type

* changelog
  • Loading branch information
pcln-james authored Feb 28, 2024
1 parent 5991f8b commit b48cbbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "pcln-design-system",
"comment": "Add BoxProps type to Container type",
"type": "patch"
}
],
"packageName": "pcln-design-system"
}
4 changes: 2 additions & 2 deletions packages/core/src/Container/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import styled from 'styled-components'
import { Box } from '../Box/Box'
import { Box, type BoxProps } from '../Box/Box'

const sizes = {
sm: 640,
Expand All @@ -24,7 +24,7 @@ export type ContainerSize = 'sm' | 'md' | 'lg' | 'xl'
/**
* @public
*/
export type ContainerProps = {
export type ContainerProps = BoxProps & {
children?: React.ReactNode
maxWidth?: number
size?: ContainerSize
Expand Down

0 comments on commit b48cbbe

Please sign in to comment.