--- title: "Toaster" slug: toaster category: component type: technical-information version: 20.0.0 tokens: 277 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-toaster--technical-information.txt --- # Toaster ## Toaster | Property | Type | Required | Default | Description | |---|---|---|---|---| | `createPortal` | `boolean` | No | undefined | Whether the component should be rendered in the DOM close to the body tag. | | `dismissible` | `boolean` | No | undefined | Whether toasts can be manually removed. | | `duration` | `number` | No | undefined | Toast duration before being removed. | | `max` | `number` | No | undefined | The maximum number of toast displayed at the same time. | | `position` | `'bottom' | 'bottom-end' | 'bottom-start' | 'top' | 'top-end' | 'top-start'` | No | undefined | The position on screen where the toasts will appear. | ## Enums ### TOAST_STATUS - `accent` = `accent` - `critical` = `critical` - `information` = `information` - `neutral` = `neutral` - `success` = `success` - `warning` = `warning` ### TOASTER_POSITION - `bottom` = `bottom` - `bottomEnd` = `bottom-end` - `bottomStart` = `bottom-start` - `top` = `top` - `topEnd` = `top-end` - `topStart` = `top-start` ## CSS Variables | Variable | Default value | |---|---| | `--ods-toaster-padding` | `24px` |