# InfoBox — SvelteKit UI

Package: sveltekit-ui 1.1.94

Page: https://www.sveltekit-ui.com/components/info_box

Category: Feedback

Colored box used for errors, warnings, or other notes

Public component import: `InfoBox`

## Usage

```svelte
<script>
  // Import the shared stylesheet once in your application's root layout.
  import "sveltekit-ui/style.css"
  import { InfoBox } from "sveltekit-ui"
</script>

<InfoBox message="Your draft is saved locally." is_cancelable={true} />
```

## Properties

### `h`

- type: number
- default: 1
- description: 0-25 hue

### `message`

- type: string
- default: null
- description: Message

### `link_name`

- type: string
- default: null
- description: link name displayed at end of note

### `link`

- type: string
- default: null
- description: link to direct to

### `is_cancelable`

- type: boolean
- default: true
- description: Adds an × to make the note disappear

### `br`

- type: number
- default: 0
- description: Border radius in rem

### `ml`

- type: number
- default: 0
- description: margin-left in rem

### `mr`

- type: number
- default: 0
- description: margin-right in rem

### `mt`

- type: number
- default: 0
- description: margin-top in rem

### `mb`

- type: number
- default: 0
- description: margin-bottom in rem
