Skip to content

Commit 7746f64

Browse files
authored
Merge pull request tailwindlabs#229 from tailwindcss/badge-alert
Add badge alert example
2 parents 4ca1ed3 + c9a12a6 commit 7746f64

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/source/docs/examples/alerts.blade.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ description: null
1818
</div>
1919
@endcomponent
2020

21+
### Modern with Badge
22+
23+
@component('_partials.code-sample', ['lang' => 'html', 'class' => 'px-0 py-0'])
24+
<div class="bg-indigo-darkest text-center py-4 lg:px-4">
25+
<div class="p-2 bg-indigo-darker items-center text-indigo-lightest leading-none lg:rounded-full flex lg:inline-flex" role="alert">
26+
<span class="flex rounded-full bg-indigo uppercase px-2 py-1 text-xs font-bold mr-3">New</span>
27+
<span class="font-semibold mr-2 text-left flex-1">Get the coolest t-shirts from our brand new store</span>
28+
<svg class="opacity-75 h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.95 10.707l.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z"/></svg>
29+
</div>
30+
</div>
31+
@endcomponent
32+
2133
### Left Accent Border
2234

2335
@component('_partials.code-sample', ['lang' => 'html'])

0 commit comments

Comments
 (0)