/**
 * title: "带标题气泡"
 * description: "通过设置align属性设置气泡出现方向，气泡内容通过Children自定义。"
 */
import React from 'react';
import { Balloon, Button } from '@alicloud/console-components';

const titleStyle = {
  fontSize: '12px',
  fontWeight: 500,
  lineHeight: '20px',
  marginBottom: '8px',
};
const but = (
  <Button
    id="topRight"
    style={{
      margin: '25px 0 25px 400px',
      background: '#E5E5E5',
    }}
  />
);
const baseWithTittle = {
  trigger: but,
  content: (
    <div style={{ width: '266px' }}>
      <div style={titleStyle}>文字提示</div>
      点击/鼠标移入元素，弹出气泡浮层，内容文案超出长度后允许自动换行。
    </div>
  ),
};

export default () => {
  return (
    <Balloon
      align="l"
      closable={false}
      trigger={baseWithTittle.trigger}
      triggerType="click"
    >
      {baseWithTittle.content}
    </Balloon>
  );
};


