Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation on IconComponent #3231

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/components/blacklight/icons/icon_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

module Blacklight
module Icons
# This is the list icon for the search button.
# This is the base class for icon components. You should extend this class for each icon.
#
# You can override the default svg by setting:
# Blacklight::Icons::ListComponent.svg = '<svg>your SVG here</svg>'
# Blacklight::Icons::MyIconComponent.svg = '<svg>your SVG here</svg>'
class IconComponent < ::ViewComponent::Base
# rubocop:disable Metrics/ParameterLists
def initialize(svg: nil, tag: :span, name: nil, label: nil, aria_hidden: nil, classes: nil, **options)
Expand Down
Loading