[Composable] Card Footer

Overview

The CardFooter component rounds off the Card's composition within the Dim Sum Design System, offering a conclusive space for actions, summaries, or additional information.

It anchors the Card, providing a clear endpoint or call-to-action that complements the content above.

This component is integral to the Card's functionality, enhancing user interaction by clearly defining the next steps or summarizing the card's content.

The CardFooter's thoughtful design ensures a consistent, intuitive user experience, making it a key element in achieving a balanced and effective user interface.


Design

composition component body layout

Box Model

The box model for the CardFooter Component is tailored with distinct features to support its function as an aesthetically pleasing, cohesive, and versatile container at the bottom of a card.

  • Padding-y 8px & Padding-x 16px
    The CardFooter ensures a consistent padding around its content, aiding in distinguishing it clearly from other elements without overlapping.

    This uniform spacing is crucial for a harmonious look and functionality across different implementations.

  • Border-top 1px solid neutral-200 (Optional)
    A subtle border at the top of the CardFooter serves to visually separate it from the content above, providing enough contrast to highlight its presence as an individual component.

    This feature preserves the minimalist design ethos, avoiding unnecessary visual distractions.

  • Min-height 40 RT
    By establishing a minimum height, the CardFooter is designed to remain visually consistent and operational across a range of devices and screen sizes.

    This ensures that the footer's functionality and aesthetic appeal are preserved, without enforcing a minimum width, thereby allowing content flexibility and readability.

  • Border-bottom radius 0 0 4px 4px
    The rounded corners at the bottom of the CardFooter enhance the card's overall appearance, making it appear more inviting and user-friendly.

    The specific curvature aligns with the card's design, ensuring a cohesive visual experience within the interface.

    These radius values are chosen to maintain design consistency across the system, improving the visual flow of components.

The CardFooter's box model design is intricately connected to its role as a functional and visual anchor within a card layout.

It aims to provide a stable and consistent footer experience across various projects by thoughtfully integrating each design element.

This intentional design strategy allows for adaptability while ensuring a consistent and unified appearance for the footer area.

 

Responsive

The CardFooter Component is designed with a responsive box model, ensuring it seamlessly adjusts to various screen sizes and environments.

This approach facilitates a consistent and accessible user experience, maintaining design integrity across diverse viewing contexts.

By design, CardFooter supports responsive resize and reflow characteristics by defining minimum height in relative units and no limitation for the widths.

Relative measurements ensure that the CardFooter maintains its structural integrity and visual appeal across different screen sizes and orientations, adapting gracefully as needed.

Dictating content-specific reflow behaviors goes beyond its scope and is managed by the individual content elements within the card-footer, which are designed to be responsive in their own right within the overarching design system.

This approach allows the card-footer to serve a wide array of content types and interaction contexts without imposing rigid layout constraints that could hinder the adaptability of the content it hosts.

 

States

StateGraphicDefault Styling
Idlecomposition component body layoutBorder bottom radius: 0 0 4px 4px
Border-top: 1px solid neutral-200 (#CBCFD7)
Padding-y: 8px
Padding-x: 16px
Min-height: 40 RT
FocusN/A (content needed to apply)N/A
DisabledN/A (content needed to apply)N/A
Read-onlyN/A (content needed to apply)N/A
HoverN/A (content needed to apply)N/A
ErrorN/A (content needed to apply)N/A

Configuration

The CardFooter includes pre-set configurations to seamlessly integrate with common scenarios. For example, incorporating a top border to the CardHeader delicately outlines the footer content from the body content, or deactivating the border to provide a more unified look and feel within the card if the content does not require explicit separation.

Scenario with Footer Border-Top Turned ONDim Sum Solution
composition component body layoutcomposition component body layout
Scenario with Footer Border-Top Turned OFFDim Sum Solution
composition component body layoutcomposition component body layout

Use Cases

Original ScenarioDim Sum Solution
composition component body layoutcomposition component body layout
composition component body layoutcomposition component body layout

Additional Examples (Optional)

Hypothetical Scenario GraphicHypothetical Scenario SolutionHypothetical Scenario Description
NANANA

Digital Accessibility

While the CardFooter Component itself primarily serves as a visual layout tool and does not introduce specific accessibility concerns, it is crucial to ensure that all content placed within the card-footer is accessible. The responsibility for accessibility lies with the content and interactive elements integrated within the card-footer.

Designers must adhere to accessibility guidelines for text, images, interactive controls, and other content types to ensure the overall accessibility of the card-footer's content.

Given the card-footer is meant to serve as an optional region of the card it should not require any special treatment apart from standard concerns but ad-hoc considerations needs to be done on the app side.


Usage Warnings

No known-of issues


References