# Alert > `Alert` is used to focus user's attention to important messages. [Theme](../source/components/alert/theme.ts) | [Example code](../examples/alert.tsx) ## Usage ```tsx import React from 'react'; import {render, Box} from 'ink'; import {Alert} from '@inkjs/ui'; function Example() { return ( A new version of this CLI is available Your license is expired Current version of this CLI has been deprecated API won't be available tomorrow night ); } render(); ``` ## Props ### children Type: `ReactNode` Message. ### variant Type: `'info' | 'success' | 'error' | 'warning'` Variant, which determines the color of the alert. ### title Type: `string` Title to show above the message.