mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 13:05:19 +02:00
Component namespacing (#2463)
* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT * [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT * Update stimulus controller references to use namespace * Fix remaining tests
This commit is contained in:
parent
d5b147f2cd
commit
ab6fdbbb68
182 changed files with 322 additions and 321 deletions
|
@ -2,17 +2,17 @@ class LinkComponentPreview < ViewComponent::Preview
|
|||
# Usage
|
||||
# -------------
|
||||
#
|
||||
# LinkComponent is a small abstraction on top of the `link_to` helper.
|
||||
# DS::Link is a small abstraction on top of the `link_to` helper.
|
||||
#
|
||||
# It can be used as a regular link or styled as a "Link button" using any of the available ButtonComponent variants.
|
||||
# It can be used as a regular link or styled as a "Link button" using any of the available DS::Button variants.
|
||||
#
|
||||
# @param variant select {{ LinkComponent::VARIANTS.keys }}
|
||||
# @param size select {{ LinkComponent::SIZES.keys }}
|
||||
# @param variant select {{ DS::Link::VARIANTS.keys }}
|
||||
# @param size select {{ DS::Link::SIZES.keys }}
|
||||
# @param icon select ["", "plus", "arrow-right"]
|
||||
# @param icon_position select ["left", "right"]
|
||||
# @param full_width toggle
|
||||
def default(variant: "default", size: "md", icon: "plus", icon_position: "left", full_width: false)
|
||||
render LinkComponent.new(
|
||||
render DS::Link.new(
|
||||
href: "#",
|
||||
text: "Preview link",
|
||||
variant: variant,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue