# Ikon

> Satu set ikon untuk semua produk, dengan ukuran, stroke, dan kamus aksi yang tetap.

Semua produk memakai [Lucide](https://lucide.dev). Cover Clearance dan Lokasign masih memakai Tabler di beberapa layar; ikon itu pindah ke Lucide saat layarnya pindah ke design system ini.

| Paket | Impor |
| --- | --- |
| React | `import { Trash2Icon } from "lucide-react"` |
| Vue | `import { Trash2 } from "@lucide/vue"` |
| Flutter | `Icon(LucideIcons.trash2)`, dari `shadcn_ui` |

## Ukuran

- **16px** (`size-4`) di dalam kontrol dan di samping teks: tombol, input, badge, item menu.
- **20px** (`size-5`) di navigasi: sidebar, bottom nav, dan top bar.
- **24px** (`size-6`) di empty state.

## Stroke dan warna

- Stroke tetap di bawaan Lucide, yaitu 2, di semua produk. Jangan ditipiskan atau ditebalkan per brand.
- Ikon memakai `currentColor`, jadi warnanya ikut warna teks kontrolnya. Warnai ikon lewat warna teksnya, jangan lewat fill.

## Aksesibilitas

- Ikon dekoratif di samping label diberi `aria-hidden="true"`.
- Tombol yang hanya berisi ikon wajib punya `aria-label` dan [Tooltip](https://design.sosialoka.tech/id/components/tooltip/) dengan kata yang sama.
- Ikon status (sukses, peringatan, error) selalu disertai teks. Ikon tidak pernah membawa arti sendirian.

## Kamus ikon

Pakai ikon yang sama untuk aksi yang sama di semua produk. Kalau aksinya belum ada, pilih dari Lucide lalu tambahkan di sini.

| Aksi | Lucide | React | Vue | Flutter |
| --- | --- | --- | --- | --- |
| Tambah | plus | PlusIcon | Plus | LucideIcons.plus |
| Ubah | pencil | PencilIcon | Pencil | LucideIcons.pencil |
| Hapus | trash-2 | Trash2Icon | Trash2 | LucideIcons.trash2 |
| Cari | search | SearchIcon | Search | LucideIcons.search |
| Filter | list-filter | ListFilterIcon | ListFilter | LucideIcons.listFilter |
| Urutkan | arrow-up-down | ArrowUpDownIcon | ArrowUpDown | LucideIcons.arrowUpDown |
| Unduh | download | DownloadIcon | Download | LucideIcons.download |
| Unggah | upload | UploadIcon | Upload | LucideIcons.upload |
| Notifikasi | bell | BellIcon | Bell | LucideIcons.bell |
| Pengaturan | settings | SettingsIcon | Settings | LucideIcons.settings |
| Akun | user | UserIcon | User | LucideIcons.user |
| Keluar | log-out | LogOutIcon | LogOut | LucideIcons.logOut |
| Rilis | disc | DiscIcon | Disc | LucideIcons.disc |
| Royalti | chart-column | ChartColumnIcon | ChartColumn | LucideIcons.chartColumn |
| Dokumen | file-text | FileTextIcon | FileText | LucideIcons.fileText |
| Lagu | music | MusicIcon | Music | LucideIcons.music |
| Artis | mic-vocal | MicVocalIcon | MicVocal | LucideIcons.micVocal |
| Tautan | link | LinkIcon | Link | LucideIcons.link |
| Salin | copy | CopyIcon | Copy | LucideIcons.copy |
| Tutup | x | XIcon | X | LucideIcons.x |
| Kembali | chevron-left | ChevronLeftIcon | ChevronLeft | LucideIcons.chevronLeft |
| Info | info | InfoIcon | Info | LucideIcons.info |
| Sukses | circle-check | CircleCheckIcon | CircleCheck | LucideIcons.circleCheck |
| Peringatan | triangle-alert | TriangleAlertIcon | TriangleAlert | LucideIcons.triangleAlert |
| Error | circle-alert | CircleAlertIcon | CircleAlert | LucideIcons.circleAlert |
