Skip to content

Commit

Permalink
docs(action-buttons): example preview for badge
Browse files Browse the repository at this point in the history
  • Loading branch information
DissNik committed Jun 28, 2024
1 parent b7406fc commit ad9a3b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/pages/en/action_button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function components(): array
<x-p>
The <code>badge()</code> method allows you to add a badge to a button.
</x-p>

<x-code language="php">
badge(Closure|string|int|float|null $value)
</x-code>
Expand All @@ -168,6 +168,8 @@ public function components(): array
//...
</x-code>

{!! actionBtn('Button', '#')->badge(25) !!}

<x-sub-title id="onclick">onClick</x-sub-title>

<x-p>
Expand Down
2 changes: 2 additions & 0 deletions resources/views/pages/ru/action_button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ public function components(): array
//...
</x-code>

{!! actionBtn('Button', '#')->badge(25) !!}

<x-sub-title id="onclick">onClick</x-sub-title>

<x-p>
Expand Down

0 comments on commit ad9a3b4

Please sign in to comment.