# Flash

A short inline status message.

Group: Overlays & Feedback

## Import

```tsx
import { Flash } from "@indoku/ui"
```

## Examples

### Basic usage

```tsx
<Stack gap="2">
  <Flash type="success">Perubahan tersimpan.</Flash>
  <Flash type="error">Gagal upload file.</Flash>
  <Flash type="info" colorPalette="purple">Update tersedia (warna dioverride ke ungu).</Flash>
</Stack>
```

## Props

### Flash

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `type` | `FlashType` | `neutral". Nentuin warna + ikon default` |  |
| `colorPalette` | `string` |  | Override the color. Follows `type` by default. |
| `icon` | `ReactNode \| false` |  | Override the icon. `false` hides it. |
| `children` | `ReactNode` |  |  |

`*` = required. Style props and HTML attributes are accepted too.
