Skip to content

Add Flowbite::Link#47

Merged
koppen merged 4 commits intomainfrom
link
Nov 13, 2025
Merged

Add Flowbite::Link#47
koppen merged 4 commits intomainfrom
link

Conversation

@koppen
Copy link
Copy Markdown
Member

@koppen koppen commented Nov 12, 2025

No description provided.

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 adds a new Flowbite::Link component for rendering styled hyperlinks with default Flowbite styling. The component supports custom attributes via options and uses the Rails link_to helper.

  • Adds Flowbite::Link component class with default styling
  • Includes tests for basic rendering and attribute handling
  • Adds Lookbook preview for documentation

Reviewed Changes

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

File Description
app/components/flowbite/link.rb New component implementing styled link with Flowbite CSS classes
test/components/flowbite/link_test.rb Unit tests for link rendering and attribute passing
demo/test/components/previews/link_preview.rb Preview example for Lookbook documentation
CHANGELOG.md Documents the addition of the Link component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Honestly, you should probably use <%= link_to %> directly, but here we
are. At least we can now do

    <%= link_to(..., class: Flowbite::Link.classes) %>
@koppen koppen merged commit 6f0ce42 into main Nov 13, 2025
5 checks passed
@koppen koppen deleted the link branch November 13, 2025 07:45
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