-
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.
implement alert skeleton for loading state
- Loading branch information
1 parent
c5d831e
commit 20757e9
Showing
3 changed files
with
26 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
|
||
export default function AlertSkeleton() { | ||
return ( | ||
<div role="status"> | ||
<div className="animate-pulse"> | ||
<div className="w-11/12 h-5 bg-indigo-200 rounded-md mb-2 sm:h-6 sm:mb-0"></div> | ||
<div className="w-4/5 h-5 bg-indigo-200 rounded-md sm:hidden"></div> | ||
</div> | ||
<span className="sr-only">Loading...</span> | ||
</div> | ||
); | ||
} |
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