<% layout('./../../layout') -%>

<% include _react_menu %>

<header class="sn-layout__header">
  <div aria-expanded="false" role="button" tabindex="0" class="sn-layout__drawer-button">
    <i class="material-icons"></i>
  </div>
  <div class="sn-layout__title-group">
    <div class="sn-layout__title-wrap">
      <span class="sn-layout__title">React</span>
    </div>  
    <div class="sn-layout__title-wrap">
      <span class="sn-layout__title">Form</span>
    </div>
  </div>
</header>

<main class="sn-layout__content sn-presentation-layout__content">
  <div class="sn-grid sn-grid--horizontal sn-grid--bleed sn-grid--bleed-all">
    <div class="sn-cell--1">
      <h3>Example</h3>
      <p>To see the example again please reload the page.</p>
      <br />
      <div id="form-component"></div>
    </div>
  </div>

  <div class="sn-grid sn-grid--horizontal sn-grid--bleed sn-grid--bleed-bottom">
    <div class="sn-cell--1">
      <pre class="sn-presentation-pre-panel">
&lt;div&gt;
  &lt;FormGroup label=&quot;Segmento&quot;&gt;
    &lt;Checkbox label=&quot;Indoor&quot; /&gt;
    &lt;Checkbox label=&quot;Retargeting&quot; /&gt;
    &lt;Checkbox label=&quot;Pretargeting&quot; /&gt;
  &lt;/FormGroup&gt;
&lt;/div&gt;
      </pre>
    </div>
  </div>

  <div class="sn-grid sn-grid--horizontal sn-grid--bleed sn-grid--bleed-bottom">
    <div class="sn-cell--1">
      <h4>Types</h4>
      <p>Type can be: <b>success, warning, danger</b> or <b>info</b>.</p>
    </div>
  </div>

  <div class="sn-grid sn-grid--horizontal sn-grid--bleed sn-grid--bleed-bottom">
    <div class="sn-cell--1">
      <h4>Icons</h4>
      <p>Icons can be <a target="_blank" href="https://design.google.com/icons">found here</a>.</p>
    </div>
  </div>

  <div class="sn-grid sn-grid--horizontal sn-grid--bleed sn-grid--bleed-bottom">
    <div class="sn-cell--1">
      <h4>Alert</h4>
      <table class="sn-presentation-table">
        <thead>
          <tr>
            <th>Attribute</th>
            <th>Type</th>
            <th>Default</th>
            <th>Description</th>
            <th>Required</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>closeAfter</td>
            <td>number</td>
            <td>null</td>
            <td>Waiting time to close</td>
            <td>No</td>
          </tr>
          <tr>
            <td>active</td>
            <td>bool</td>
            <td>false</td>
            <td>True to show the alert. False to hidden.</td>
            <td>No</td>
          </tr>
          <tr>
            <td>message</td>
            <td>string</td>
            <td>null</td>
            <td>Message that will be show.</td>
            <td>Yes</td>
          </tr>
          <tr>
            <td>type</td>
            <td>string</td>
            <td>success</td>
            <td>Background color.</td>
            <td>No</td>
          </tr>
          <tr>
            <td>icon</td>
            <td>string</td>
            <td>null</td>
            <td>Icon that will be show.</td>
            <td>No</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</main>

<% script('/form.js', 'text/babel') -%>