<template>
  <CRow>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Basic example</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            Place one add-on or button on either side of an input. You may also
            place one on both sides of an input. Remember to place
            <code>&lt;CFormLabel&gt;</code>s outside the input group.
          </p>
          <DocsExample href="forms/input-group.html">
            <CInputGroup class="mb-3">
              <CInputGroupText id="basic-addon1">@</CInputGroupText>
              <CFormInput
                placeholder="Username"
                aria-label="Username"
                aria-describedby="basic-addon1"
              />
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CFormInput
                placeholder="Recipient&#39;s username"
                aria-label="Recipient&#39;s username"
                aria-describedby="basic-addon2"
              />
              <CInputGroupText id="basic-addon2">@example.com</CInputGroupText>
            </CInputGroup>
            <CFormLabel for="basic-url">Your vanity URL</CFormLabel>
            <CInputGroup class="mb-3">
              <CInputGroupText id="basic-addon3"
                >https://example.com/users/</CInputGroupText
              >
              <CFormInput id="basic-url" aria-describedby="basic-addon3" />
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CInputGroupText>$</CInputGroupText>
              <CFormInput aria-label="Amount (to the nearest dollar)" />
              <CInputGroupText>.00</CInputGroupText>
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CFormInput placeholder="Username" aria-label="Username" />
              <CInputGroupText>@</CInputGroupText>
              <CFormInput placeholder="Server" aria-label="Server" />
            </CInputGroup>
            <CInputGroup>
              <CInputGroupText>With textarea</CInputGroupText>
              <CFormTextarea aria-label="With textarea"></CFormTextarea>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Wrapping</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            Input groups wrap by default via <code>flex-wrap: wrap</code> in
            order to accommodate custom form field validation within an input
            group. You may disable this with <code>.flex-nowrap</code>.
          </p>
          <DocsExample href="forms/input-group.html#wrapping">
            <CInputGroup class="flex-nowrap">
              <CInputGroupText id="addon-wrapping">@</CInputGroupText>
              <CFormInput
                placeholder="Username"
                aria-label="Username"
                aria-describedby="addon-wrapping"
              />
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Sizing</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            Add the relative form sizing classes to the
            <code>&lt;CInputGroup&gt;</code> itself and contents within will
            automatically resize—no need for repeating the form control size
            classes on each element.
          </p>
          <p class="text-body-secondary small">
            <strong
              >Sizing on the individual input group elements
              isn&#39;tsupported.</strong
            >
          </p>
          <DocsExample href="forms/input-group.html#sizing">
            <CInputGroup size="sm" class="mb-3">
              <CInputGroupText id="inputGroup-sizing-sm">Small</CInputGroupText>
              <CFormInput
                aria-label="Sizing example input"
                aria-describedby="inputGroup-sizing-sm"
              />
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CInputGroupText id="inputGroup-sizing-default"
                >Default</CInputGroupText
              >
              <CFormInput
                aria-label="Sizing example input"
                aria-describedby="inputGroup-sizing-default"
              />
            </CInputGroup>
            <CInputGroup size="lg">
              <CInputGroupText id="inputGroup-sizing-lg">Large</CInputGroupText>
              <CFormInput
                aria-label="Sizing example input"
                aria-describedby="inputGroup-sizing-lg"
              />
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Checkboxes and radios</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            Place any checkbox or radio option within an input group&#39;s addon
            instead of text.
          </p>
          <DocsExample href="forms/input-group.html#checkboxes-and-radios">
            <CInputGroup class="mb-3">
              <CInputGroupText>
                <CFormCheck
                  type="checkbox"
                  value=""
                  aria-label="Checkbox for following text input"
                />
              </CInputGroupText>
              <CFormInput aria-label="Text input with checkbox" />
            </CInputGroup>
            <CInputGroup>
              <CInputGroupText>
                <CFormCheck
                  type="radio"
                  value=""
                  aria-label="Radio button for following text input"
                />
              </CInputGroupText>
              <CFormInput aria-label="Text input with radio button" />
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Multiple inputs</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            While multiple <code>&lt;CFormInput&gt;</code>s are supported
            visually, validation styles are only available for input groups with
            a single <code>&lt;CFormInput&gt;</code>.
          </p>
          <DocsExample href="forms/input-group.html#multiple-inputs">
            <CInputGroup>
              <CInputGroupText>First and last name</CInputGroupText>
              <CFormInput aria-label="First name" />
              <CFormInput aria-label="Last name" />
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Multiple addons</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            Multiple add-ons are supported and can be mixed with checkbox and
            radio input versions..
          </p>
          <DocsExample href="forms/input-group.html#multiple-addons">
            <CInputGroup class="mb-3">
              <CInputGroupText>$</CInputGroupText>
              <CInputGroupText>0.00</CInputGroupText>
              <CFormInput
                aria-label="Dollar amount (with dot and two decimal places)"
              />
            </CInputGroup>
            <CInputGroup>
              <CFormInput
                aria-label="Dollar amount (with dot and two decimal places)"
              />
              <CInputGroupText>$</CInputGroupText>
              <CInputGroupText>0.00</CInputGroupText>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Button addons</small>
        </CCardHeader>
        <CCardBody>
          <p class="text-body-secondary small">
            Multiple add-ons are supported and can be mixed with checkbox and
            radio input versions..
          </p>
          <DocsExample href="forms/input-group.html#button-addons">
            <CInputGroup class="mb-3">
              <CButton
                id="button-addon1"
                type="button"
                color="secondary"
                variant="outline"
              >
                Button
              </CButton>
              <CFormInput
                placeholder=""
                aria-label="Example text with button addon"
                aria-describedby="button-addon1"
              />
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CFormInput
                placeholder="Recipient's username"
                aria-label="Recipient's username"
                aria-describedby="button-addon2"
              />
              <CButton
                id="button-addon2"
                type="button"
                color="secondary"
                variant="outline"
              >
                Button
              </CButton>
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CButton type="button" color="secondary" variant="outline">
                Button
              </CButton>
              <CButton type="button" color="secondary" variant="outline">
                Button
              </CButton>
              <CFormInput
                placeholder=""
                aria-label="Example text with two button addons"
              />
            </CInputGroup>
            <CInputGroup>
              <CFormInput
                placeholder="Recipient's username"
                aria-label="Recipient's username with two button addons"
              />
              <CButton type="button" color="secondary" variant="outline">
                Button
              </CButton>
              <CButton type="button" color="secondary" variant="outline">
                Button
              </CButton>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Buttons with dropdowns</small>
        </CCardHeader>
        <CCardBody>
          <DocsExample href="forms/input-group.html#buttons-with-dropdowns">
            <CInputGroup class="mb-3">
              <CDropdown variant="input-group">
                <CDropdownToggle color="secondary" variant="outline">
                  Dropdown
                </CDropdownToggle>
                <CDropdownMenu>
                  <CDropdownItem href="#">Action</CDropdownItem>
                  <CDropdownItem href="#">Another action</CDropdownItem>
                  <CDropdownItem href="#">Something else here</CDropdownItem>
                  <CDropdownDivider />
                  <CDropdownItem href="#">Separated link</CDropdownItem>
                </CDropdownMenu>
              </CDropdown>
              <CFormInput aria-label="Text input with dropdown button" />
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CFormInput aria-label="Text input with dropdown button" />
              <CDropdown alignment="end" variant="input-group">
                <CDropdownToggle color="secondary" variant="outline">
                  Dropdown
                </CDropdownToggle>
                <CDropdownMenu>
                  <CDropdownItem href="#">Action</CDropdownItem>
                  <CDropdownItem href="#">Another action</CDropdownItem>
                  <CDropdownItem href="#">Something else here</CDropdownItem>
                  <CDropdownDivider />
                  <CDropdownItem href="#">Separated link</CDropdownItem>
                </CDropdownMenu>
              </CDropdown>
            </CInputGroup>
            <CInputGroup>
              <CDropdown variant="input-group">
                <CDropdownToggle color="secondary" variant="outline">
                  Dropdown
                </CDropdownToggle>
                <CDropdownMenu>
                  <CDropdownItem href="#">Action</CDropdownItem>
                  <CDropdownItem href="#">Another action</CDropdownItem>
                  <CDropdownItem href="#">Something else here</CDropdownItem>
                  <CDropdownDivider />
                  <CDropdownItem href="#">Separated link</CDropdownItem>
                </CDropdownMenu>
              </CDropdown>
              <CFormInput aria-label="Text input with 2 dropdown buttons" />
              <CDropdown alignment="end" variant="input-group">
                <CDropdownToggle color="secondary" variant="outline">
                  Dropdown
                </CDropdownToggle>
                <CDropdownMenu>
                  <CDropdownItem href="#">Action</CDropdownItem>
                  <CDropdownItem href="#">Another action</CDropdownItem>
                  <CDropdownItem href="#">Something else here</CDropdownItem>
                  <CDropdownDivider />
                  <CDropdownItem href="#">Separated link</CDropdownItem>
                </CDropdownMenu>
              </CDropdown>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Segmented buttons</small>
        </CCardHeader>
        <CCardBody>
          <DocsExample href="forms/input-group.html#segmented-buttons">
            <CInputGroup class="mb-3">
              <CDropdown variant="input-group">
                <CButton type="button" color="secondary" variant="outline">
                  Action
                </CButton>
                <CDropdownToggle color="secondary" variant="outline" split />
                <CDropdownMenu>
                  <CDropdownItem href="#">Action</CDropdownItem>
                  <CDropdownItem href="#">Another action</CDropdownItem>
                  <CDropdownItem href="#">Something else here</CDropdownItem>
                  <CDropdownDivider />
                  <CDropdownItem href="#">Separated link</CDropdownItem>
                </CDropdownMenu>
              </CDropdown>
              <CFormInput
                aria-label="Text input with segmented dropdown button"
              />
            </CInputGroup>
            <CInputGroup>
              <CFormInput
                aria-label="Text input with segmented dropdown button"
              />
              <CDropdown alignment="end" variant="input-group">
                <CButton type="button" color="secondary" variant="outline">
                  Action
                </CButton>
                <CDropdownToggle color="secondary" variant="outline" split />
                <CDropdownMenu>
                  <CDropdownItem href="#">Action</CDropdownItem>
                  <CDropdownItem href="#">Another action</CDropdownItem>
                  <CDropdownItem href="#">Something else here</CDropdownItem>
                  <CDropdownDivider />
                  <CDropdownItem href="#">Separated link</CDropdownItem>
                </CDropdownMenu>
              </CDropdown>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Custom select</small>
        </CCardHeader>
        <CCardBody>
          <DocsExample href="forms/input-group.html#custom-select">
            <CInputGroup class="mb-3">
              <CInputGroupText component="label" for="inputGroupSelect01">
                Options
              </CInputGroupText>
              <CFormSelect id="inputGroupSelect01">
                <option>Choose...</option>
                <option value="1">One</option>
                <option value="2">Two</option>
                <option value="3">Three</option>
              </CFormSelect>
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CFormSelect id="inputGroupSelect02">
                <option>Choose...</option>
                <option value="1">One</option>
                <option value="2">Two</option>
                <option value="3">Three</option>
              </CFormSelect>
              <CInputGroupText component="label" for="inputGroupSelect02">
                Options
              </CInputGroupText>
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CButton type="button" color="secondary" variant="outline">
                Button
              </CButton>
              <CFormSelect
                id="inputGroupSelect03"
                aria-label="Example select with button addon"
              >
                <option>Choose...</option>
                <option value="1">One</option>
                <option value="2">Two</option>
                <option value="3">Three</option>
              </CFormSelect>
            </CInputGroup>
            <CInputGroup>
              <CFormSelect
                id="inputGroupSelect04"
                aria-label="Example select with button addon"
              >
                <option>Choose...</option>
                <option value="1">One</option>
                <option value="2">Two</option>
                <option value="3">Three</option>
              </CFormSelect>
              <CButton type="button" color="secondary" variant="outline">
                Button
              </CButton>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
    <CCol :xs="12">
      <CCard class="mb-4">
        <CCardHeader>
          <strong>Vue Input group</strong> <small>Custom file input</small>
        </CCardHeader>
        <CCardBody>
          <DocsExample href="forms/input-group.html#custom-file-input">
            <CInputGroup class="mb-3">
              <CInputGroupText component="label" for="inputGroupFile01">
                Upload
              </CInputGroupText>
              <CFormInput id="inputGroupFile01" type="file" />
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CFormInput id="inputGroupFile02" type="file" />
              <CInputGroupText component="label" for="inputGroupFile02">
                Upload
              </CInputGroupText>
            </CInputGroup>
            <CInputGroup class="mb-3">
              <CButton
                id="inputGroupFileAddon03"
                type="button"
                color="secondary"
                variant="outline"
              >
                Button
              </CButton>
              <CFormInput
                id="inputGroupFile03"
                type="file"
                aria-describedby="inputGroupFileAddon03"
                aria-label="Upload"
              />
            </CInputGroup>
            <CInputGroup>
              <CFormInput
                id="inputGroupFile04"
                type="file"
                aria-describedby="inputGroupFileAddon04"
                aria-label="Upload"
              />
              <CButton
                id="inputGroupFileAddon04"
                type="button"
                color="secondary"
                variant="outline"
              >
                Button
              </CButton>
            </CInputGroup>
          </DocsExample>
        </CCardBody>
      </CCard>
    </CCol>
  </CRow>
</template>

<script>
export default {
  name: 'InputGroup',
}
</script>
