feat: build Onyx SSR shell and plan hero with mock data
This commit is contained in:
1 parent
84c20992f9
commit
2db494fb10
34 files changed
+3197
-2
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
label: string
|
||||
value: string
|
||||
hint?: string
|
||||
badge?: string
|
||||
badgeColor?: 'neutral' | 'danger' | 'success' | 'primary' | 'warning' | 'info'
|
||||
icon?: string
|
||||
}>(),
|
||||
{ badgeColor: 'neutral' },
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<OnyxCard class="stat-card">
|
||||
<p class="stat-label">
|
||||
<OnyxIcon v-if="icon" :icon="icon" size="16px" color="primary" />
|
||||
{{ label }}
|
||||
</p>
|
||||
<p class="stat-value">{{ value }}</p>
|
||||
<OnyxBadge v-if="badge" :color="badgeColor" density="compact">{{ badge }}</OnyxBadge>
|
||||
<p v-if="hint" class="stat-hint">{{ hint }}</p>
|
||||
</OnyxCard>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.stat-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user