Usage
vue
<template #sidebar-bottom>
<NbSidebarMenu>
<NbSidebarMenuItem icon="book" label="Documentation" :href="docsUrl" />
</NbSidebarMenu>
<NbUserMenu :user="user" trigger="identity" />
<NbSidebarStatus
:label="connected ? 'Daemon connected' : 'Daemon disconnected'"
:status="connected ? 'success' : 'danger'"
/>
</template>It shows a state, it is not a control. If the person can act on it (reconnect, retry), put that action on the page the status is about, not on the dot.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | What the status says. Visible expanded, a tooltip when collapsed. | |
status | 'success' | 'warning' | 'danger' | 'neutral' | 'neutral' | The colour of the dot. |
It renders with role="status", so a change of label is announced.