-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract banner content into a separate component
- Loading branch information
1 parent
d5557db
commit 93ed40b
Showing
2 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="mdc-banner__content" role="alertdialog" aria-live="assertive"> | ||
<div class="mdc-banner__graphic-text-wrapper"> | ||
|
||
@if ($icon) | ||
<div class="mdc-banner__graphic" alt="" role="img"> | ||
<x-mbc::Icon class="mdc-banner__icon" :name="$icon" /> | ||
</div> | ||
@endif | ||
|
||
<div class="mdc-banner__text"> | ||
{{ $slot }} | ||
</div> | ||
</div> | ||
|
||
@if ($actions) | ||
<div class="mdc-banner__actions"> | ||
{{ $actions }} | ||
</div> | ||
@endif | ||
</div> |