From b5c5340855bc3133ced93c8944a6a08b320ebb70 Mon Sep 17 00:00:00 2001 From: Debatty-Tom <145542891+Debatty-Tom@users.noreply.github.com> Date: Wed, 1 Oct 2025 16:42:27 +0200 Subject: [PATCH] Added more informations on button customization --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 76d1423..4dc2730 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,29 @@ As you probably noticed, we've included our design's CSS directly in the `cookie Our CSS is compiled from a SASS file included in this package's `resources/scss` directory. If that fits your workflow, feel free to use it as a starting point for your own implementation. +Buttons in this package are designed to be easily customizable. +You can pass an array of attributes directly to the `@cookieconsentbutton` component: + +```blade +@cookieconsentbutton( + action: 'reset', + label: 'Manage cookies', + attributes: [ + 'id' => 'reset-button', + 'class' => 'btn' + ] +) +``` + +In this example: + +* The wrapping `