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

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

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


