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 `
` element will receive the `btn` class. +* The generated `