/* eslint-disable import/prefer-default-export */
import { styled } from '@styled-components'
import { Box } from '../box/index.js'
import { themeGet, cssClass } from '../../utils/index.js'
/**
* @classdesc
*
*
*
* Marks group of fields as a section. Has the same props as [Box]{@link BoxProps}
*
* ### Usage
*
* ```javascript
* import { Section } from '@adminjs/design-system'
* ```
*
* @component
* @subcategory Atoms
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-atoms-section--default Storybook}
* @hideconstructor
* @example
* return (
*
* Some text within a section
*
* Section can be nested
*
*
* )
* @section design-system
*/
const Section = styled(Box)`
border: 1px dashed ${({ theme }) => theme.colors.inputBorder};
padding: ${themeGet('space', 'lg')};
`
Section.defaultProps = {
className: cssClass('Section'),
}
Section.displayName = 'Section'
export { Section }
export default Section