PHP Classes

File: src/components/loading/DashboardCardLoading.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/loading/DashboardCardLoading.tsx   Download  
File: src/components/loading/DashboardCardLoading.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 883 bytes


Class file image Download
export default function DashboardCardLoading() { const loadingElement = ( <div className="animate-pulse flex space-x-4 bg-white ml-2 p-6 mr-5 rounded"> <div className="rounded-full bg-gray h-10 w-10"></div> <div className="flex-1 space-y-6 py-1"> <div className="space-y-3"> <div className="h-3 bg-gray rounded col-span-2 w-9"></div> <div className="h-3 bg-gray rounded col-span-1 w-24"></div> </div> </div> </div> ); const loadingRow = ( <div className="flex flex-wrap mb-6"> <div className="flex-1">{loadingElement}</div> <div className="flex-1">{loadingElement}</div> </div> ); return ( <> {loadingRow} {loadingRow} {loadingRow} </> ); }