Get started
Forms
- Label
- Icon label
- Field
- Form
- Frontmatter form
- Questionnaire
- Input
- Input group
- Input OTP
- Password input
- Password strength
- Code input
- Number field
- Tag input
- Textarea
- Checkbox
- Radio group
- Language toggle group
- Emoji appearance toggle group
- Emoji picker
- Avatar picker
- AI provider picker
- Select
- Native select
- Combobox
- Language combobox
- Slider
- Calendar
- Switch
Display
- Alert
- Avatar
- Badge
- Card
- AI provider card
- Model info card
- Model list
- Empty
- Item
- Tree item
- File tree
- Icon media
- File type icon
- Font preview
- Image preview
- Kbd
- Table
- Data table
- Data table column header
- Chart
- Code Block
- Code card
- Markdown view
- Attachment
- Bubble
- Marker
- Message
- Chat message
- Chat suggestion item
- Message scroller
- Trace
- Progress
- Spinner
- Sonner
- Toast
- Unsaved changes toolbar
- Unsaved indicator
- Status indicator
- Permission card
- Separator
- Skeleton
- Animated grid pattern
- Meteors
Layout
The unsaved-changes dot an editor shows on a tab, announced as an image named Unsaved changes.
Installation#
bash
pnpm dlx shadcn@latest add @zui/unsaved-indicatorThe CLI writes components/feedback/unsaved-indicator.tsx and installs Utils.
Usage#
tsx
import { UnsavedIndicator } from '@/components/feedback/unsaved-indicator';tsx
<View className="flex-row items-center gap-2">
<Text>page.tsx</Text>
<UnsavedIndicator />
</View>Use it for a tab's own pending-edit dot; for a presence or connection tone, use Status indicator instead.
API reference#
UnsavedIndicator#
Takes every prop of React Native's View. It is one element for a screen reader, announced as an image named
"Unsaved changes"; pass aria-label to name it in another language.