74.0.1 • Published 8 years ago

ak-inline-dialog v74.0.1

Weekly downloads
1
License
Apache-2.0
Repository
bitbucket
Last release
8 years ago

AtlasKit component registry Commitizen friendly semantic-release Report an issue Ask in our forum

Inline Dialog

The Inline Dialog is a container for secondary content and controls that are displayed on user request.

Example inline dialog

Try it out

Interact with a live demo of the ak-inline-dialog component.

Installation

npm install ak-inline-dialog

Using the component

ak-inline-dialog is a React component that can wrap content and then toggle the display of an aligned dialog box.

Example usage:

import React, { PropTypes, PureComponent } from 'react';
import AKInlineDialog from 'ak-inline-dialog';

class ButtonActivatedDialog extends PureComponent {
  static propTypes = {
    content: PropTypes.node,
    position: PropTypes.string,
  }

  state = {
    isOpen: false,
  };

  handleClick = () => {
    this.setState({
      isOpen: !this.state.isOpen,
    });
  }

  render = () => (
    <AKInlineDialog
      content={this.props.content}
      position={this.props.position}
      isOpen={this.state.isOpen}
    >
      <button onClick={this.handleClick} />
    </AKInlineDialog>
  )
}

This would allow you to use the ButtonActivatedDialog class to render something similar to the example gif above.

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.

Check if someone has already asked the same question before.

Create a support ticket

Are you in trouble? Let us know!

74.0.1

8 years ago

73.0.3

9 years ago

73.0.2

9 years ago

73.0.1

9 years ago

73.0.0

9 years ago

72.0.0

9 years ago

71.2.1

9 years ago

71.2.0

9 years ago

71.1.2

9 years ago

71.1.1

9 years ago

71.1.0

9 years ago

71.0.10

9 years ago

71.0.8

9 years ago

71.0.7

9 years ago

71.0.6

9 years ago

71.0.5

9 years ago

71.0.1

9 years ago

71.0.0

9 years ago

70.3.0

9 years ago

70.1.0

9 years ago

70.0.1

9 years ago

70.0.0

9 years ago

69.6.2

9 years ago

69.6.1

9 years ago

69.6.0

9 years ago

69.5.0

9 years ago

69.4.1

9 years ago

69.4.0

9 years ago

69.2.2

9 years ago

69.2.1

9 years ago

69.2.0

9 years ago

69.1.0

9 years ago

69.0.0

9 years ago