import Input from '..';
import React from 'react';
import ReactDOM from 'react-dom';

ReactDOM.render(
  <div>
    <Input
      placeholder="width:400"
      style={{ width: 400 }}
      aria-label="style width 400"
    />
    <br />
    <br />

    <Input
      addonTextBefore="http://"
      addonTextAfter=".com"
      size="medium"
      value="alibaba"
      style={{ width: 400 }}
      aria-label="style width 400"
    />
    <br />
    <br />

    <Input
      placeholder="medium"
      maxLength={10}
      showLimitHint
      style={{ width: 400 }}
      aria-label="style width 400"
    />
    <br />
    <br />

    <Input
      placeholder="medium"
      hasClear
      maxLength={10}
      showLimitHint
      style={{ width: 400 }}
      className="my-input-class"
      state="success"
      aria-label="style width 400"
    />
    <br />
    <br />

    <Input
      placeholder="className"
      className="my-input-class"
      aria-label="custom my input class"
      style={{ width: '500px' }}
    />
    <Input htmlType="hidden" aria-label="hidden input" />
  </div>,
  document.getElementById('input-demo-12'),
);
