Function
StatCard
({ label, value, accent }: { label: string; value: string; accent: string })
Source from the content-addressed store, hash-verified
| 51 | export type { JSX } from 'preact'; |
| 52 | |
| 53 | export function StatCard({ label, value, accent }: { label: string; value: string; accent: string }) { |
| 54 | return html` |
| 55 | <div class="stat-card"> |
| 56 | <div class="stat-card-accent" style=${'background:' + accent}></div> |
| 57 | <div class="stat-value">${value}</div> |
| 58 | <div class="stat-label">${label}</div> |
| 59 | </div>`; |
| 60 | } |
| 61 | |
| 62 | export function CanvasEl({ id, height, title }: { id: string; height?: number; title?: string }) { |
| 63 | return html` |
Callers
nothing calls this directly
Tested by
no test coverage detected