Skip to content

Commit

Permalink
Add options to table
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Feb 28, 2025
1 parent f53fef1 commit ceaa152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/tailwinds/table_component.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= helpers.component 'tailwinds/table/row/preview'

.div-table.w-full.text-left.rtl:text-right.text-gray-500.dark:text-gray-400.mt-4
.div-table.w-full.text-left.rtl:text-right.text-gray-500.dark:text-gray-400.mt-4{ **options }
= content
1 change: 1 addition & 0 deletions app/components/tailwinds/table_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
module Tailwinds
# Table component for rendering a table
class TableComponent < Tramway::Component::Base
option :options, optional: true, default: -> { {} }
end
end

0 comments on commit ceaa152

Please sign in to comment.