Skip to content

Commit

Permalink
Add extra card class attribute in README.md
Browse files Browse the repository at this point in the history
The README.md has been updated to include the use of the 'extraCardsAttributes' property in the instructions for users. This property allows users to add extra class attributes to the card HTML element in the customizable radio deck implementation using TailwindCSS utilities.
  • Loading branch information
OrangeJuiced committed Mar 15, 2024
1 parent d5015c2 commit 66a699d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ public static function form(Form $form): Form
->gap('gap-5') // Gap between Icon and Description (Any TailwindCSS gap-* utility)
->padding('px-4 px-6') // Padding around the deck (Any TailwindCSS padding utility)
->direction('column') // Column | Row (Allows to place the Icon on top)
->extraCardsAttributes([ // Extra Attributes to add to the card HTML element
'class' => 'rounded-xl'
])
->extraOptionsAttributes([ // Extra Attributes to add to the option HTML element
'class' => 'text-3xl leading-none w-full flex flex-col items-center justify-center p-4'
])
Expand Down

0 comments on commit 66a699d

Please sign in to comment.