Skip to content

Add the most basic card component#31

Merged
koppen merged 4 commits intomainfrom
cards
Aug 22, 2025
Merged

Add the most basic card component#31
koppen merged 4 commits intomainfrom
cards

Conversation

@koppen
Copy link
Copy Markdown
Member

@koppen koppen commented Aug 22, 2025

For now this is basically just a frame. Going forward I expect us to add more details and functionality in order to implement all of the options of https://flowbite.com/docs/components/card/ - but for now the most basic version is a good start.

CleanShot 2025-08-22 at 11 18 57

@koppen koppen requested a review from Copilot August 22, 2025 09:19

This comment was marked as outdated.

For now this is basically just a frame. Going forward I expect us to add
more details and functionality in order to implement all of the options
of https://flowbite.com/docs/components/card/ - but for now the most
basic version is a good start.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a basic card component that serves as a foundation for implementing Flowbite's card functionality. The component provides a simple frame with basic styling that can display content.

  • Adds a new Flowbite::Card component with default styling based on Flowbite design system
  • Includes comprehensive test coverage for the component's rendering behavior
  • Provides a preview component for demonstration purposes

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
app/components/flowbite/card.rb Implements the main Card component with styling and rendering logic
test/components/flowbite/card_test.rb Adds unit tests to verify card rendering with correct CSS classes
demo/test/components/previews/card_preview.rb Creates preview component for visual demonstration
CHANGELOG.md Documents the addition of the basic Card component

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@koppen koppen requested review from RasmusDWN and olepalm August 22, 2025 09:29
koppen added 2 commits August 22, 2025 12:38
Now that we have a basic Card component we might as well use it.
@koppen koppen merged commit 94d0a6c into main Aug 22, 2025
5 checks passed
@koppen koppen deleted the cards branch August 22, 2025 14:35
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.

3 participants