var builder = require('focus').component.builder;
var type = require('focus').component.types;
var messageMixin = {
  /** @inheritedDoc */
  getDefaultProps: function getMessageDefaultProps(){
    return {
      title: undefined,
      content: undefined,
      type: 'info',
      ttl: undefined,
      style: {}
    };
  },
  /** @inheritedDoc */
  propTypes: {
    title: type('string'),
    content: type('string'),
    type: type('string'),
    ttl: type('number'),
    style: type('object')
  },
  componentDidMount(){
    if(this.props.ttl){
      setTimeout(()=>{
        this._handleTimeToLeave();
      }, this.props.ttl);
    }
  },
  _handleTimeToLeave(){
    if(this.props.handleTimeToLeave){
      this.props.handleTimeToLeave(this.props.id);
    }
  },
  /**
   * Handle click on the dismiss button.
   * @param {Event} event - Sanitize event.
   */
  _handleOnClick: function handleOnClickMessageDismiss(event){
    if(this.props.handleOnClick){
      this.props.handleOnClick(this.props.id);
    }
    //Maybe it is not the best way to do it.
    //React.unmountComponentAtNode(this.getDOMNode().parentNode);
  },
  _renderTitle: function renderMessageTitle() {
      if(this.props.title) {
          return <h4>{this.props.title}</h4>
      }
      return undefined;
  },
  /**
   * Render an alert.
   * @return {JSX} The jsx.
   */
  render: function renderAlert(){
    var cssClass = `alert alert-dismissable alert-${this.props.type} ${this.props.style.className}`;
    return(
      <div className={cssClass} data-id={this.props.id} data-focus='message'>
        <button type='button' className='close' data-dismiss='alert' onClick={this._handleOnClick}>×</button>
        {this._renderTitle()}
        <p>{this.props.content}</p>
      </div>
    );
  }
};
module.exports = builder(messageMixin);

@@ -1375,24 +1375,116 @@
 derAlert()%7B%0A
+    let type = this.props.type && this.props.type === 'error' ? 'danger' : this.props.type;%0A
     var cssC
@@ -1523,27 +1523,16 @@
 alert-$%7B
-this.props.
 type%7D $%7B

Add error as danger in bootstrap.