[![AtlasKit component registry](https://img.shields.io/badge/AtlasKit-components-FF5230.svg)](http://aui-cdn.atlassian.com/atlaskit/registry/)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://Commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/GitHub-semantic_release-ffab00.svg)](https://github.com/semantic-release/semantic-release)
[![Report an issue](https://img.shields.io/badge/Report-an_issue-6554C0.svg)](https://ecosystem.atlassian.net/browse/AK)
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/droplist-trigger,@atlaskit/droplist-trigger@1.1.4)

# Trigger

This is one of the building blocks of dropdowns and it gets activated by pressing "space" or "enter", or by clicking on it.

![Example trigger](https://bytebucket.org/atlassian/atlaskit/raw/449fa6658e0546a54ddd3fefd4c059a8795e8c69/packages/ak-droplist-trigger/docs/trigger.gif)
## Try it out

Interact with a [live demo of the @atlaskit/droplist-trigger component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/droplist-trigger/1.1.4/).

## Installation

```sh
npm install @atlaskit/droplist-trigger
```

## Using the component

### HTML

This package exports the ak-droplist-trigger React component.

Import the component in your React app as follows:

```js
import Trigger from '@atlaskit/droplist-trigger';

const callback = () => {
  // all the action should be happening in this callback
}

ReactDOM.render(<Trigger onActivate={callback}>Some awesome text</Trigger>, container);
```



## Support and feedback

### We're here to help!

Let us know what you think of our components and docs, your feedback is really important for us.

### Community support

Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,@atlaskit/droplist-trigger,@atlaskit/droplist-trigger@1.1.4).

Check [if someone has already asked the same question before](https://answers.atlassian.com/questions/topics/42926171/atlaskit).


### Create a support ticket

Are you in trouble? [Let us know](https://ecosystem.atlassian.net/browse/AK)!

