---
name: Alert
menu: Components
---

import { Playground, Props } from 'docz'
import { Alert } from './Alert'

import { Button, EditButton} from './Alert'

<EditButton />


# Alert

## Properties

<Props of={Alert} />

## Basic usage

<Playground>
  <Alert>Some message</Alert>
</Playground>

## Using different kinds

<Playground>
  <Alert kind="info">Some message</Alert>
  <Alert kind="positive">Some message</Alert>
  <Alert kind="negative">Some message</Alert>
  <Alert kind="warning">Some message</Alert>
</Playground>

## Use with children as a function

<Playground>
  {() => {
    const message = 'Hello world'

    return (
      <Alert>{message}</Alert>
    )
  }}
</Playground>
