Skip to content

WIP feat: add optional header prop to Box component#1408

Draft
aaronlee777 wants to merge 1 commit intomainfrom
feat/al/box-ui-improvements
Draft

WIP feat: add optional header prop to Box component#1408
aaronlee777 wants to merge 1 commit intomainfrom
feat/al/box-ui-improvements

Conversation

@aaronlee777
Copy link
Copy Markdown
Contributor

Summary

Add header support mirroring the existing footer pattern, with border-bottom separator and consistent padding. Box remains usable with no header/footer, header only, footer only, or both.

Demo

Screenshot 2026-03-30 at 12 53 05 PM

Add header support mirroring the existing footer pattern, with
border-bottom separator and consistent padding. Box remains usable
with no header/footer, header only, footer only, or both.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aaronlee777 aaronlee777 changed the title feat: add optional header prop to Box component WIP feat: add optional header prop to Box component Mar 30, 2026
import { type BoxProps } from '@/components/Common/UI/Box/BoxTypes'

export function Box({ children, footer, className }: BoxProps) {
export function Box({ children, header, footer, className }: BoxProps) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't a box with a header and footer a card?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants