release: WRNexusJS 0.8.0
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
component RoomStatus {
|
||||
props {
|
||||
label: string = "Connecting…"
|
||||
connectedLabel: string = "Connected"
|
||||
disconnectedLabel: string = "Disconnected"
|
||||
errorLabel: string = "Connection error"
|
||||
color: string = "primary"
|
||||
size: string = "sm"
|
||||
class: string = ""
|
||||
}
|
||||
|
||||
view {
|
||||
<div class='flex items-center justify-between gap-3 {class}'>
|
||||
<Badge label="Live" color='{color}' size='{size}' variant="soft" />
|
||||
<span
|
||||
data-room-status
|
||||
data-room-status-class="inline-flex items-center gap-2 text-xs font-medium text-[var(--wire-color-muted)]"
|
||||
class="inline-flex items-center gap-2 text-xs font-medium text-[var(--wire-color-muted)]"
|
||||
aria-live="polite"
|
||||
>{label}</span>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user