<div class="pagination">
    <a class="button rounded-circle" data-table-scroll="start">&#x276E;</a>
    <div class="input--radio-group radio-group--row">
        <div class="input input--radio mb-0">
            <input type="radio" name="1" id="1-0" value="1" />
            <label class="input__label" for="1-0">1</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="2" id="2-1" value="2" />
            <label class="input__label" for="2-1">2</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="3" id="3-2" value="3" checked />
            <label class="input__label" for="3-2">3</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="4" id="4-3" value="4" />
            <label class="input__label" for="4-3">4</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="" id="-4" value="" />
            <label class="input__label" for="-4">...</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="17" id="17-5" value="17" />
            <label class="input__label" for="17-5">17</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="18" id="18-6" value="18" />
            <label class="input__label" for="18-6">18</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="19" id="19-7" value="19" />
            <label class="input__label" for="19-7">19</label>
        </div>
        <div class="input input--radio mb-0">
            <input type="radio" name="20" id="20-8" value="20" />
            <label class="input__label" for="20-8">20</label>
        </div>
    </div>
    <a class="button rounded-circle" data-table-scroll="end">&#x276F;</a>
</div>
<div class="pagination">
    <a class="button rounded-circle" data-table-scroll="start">&#x276E;</a>
    {{#if radio}}
      <div class="input--radio-group radio-group--row">
        {{#each items}}
        <div class="input input--radio mb-0">
          <input
            type="radio"
            name="{{value}}"
            id="{{value}}-{{@index}}"
            value="{{value}}"
            {{#if active}} checked{{/if}}
            {{#if disabled}} disabled{{/if}}
          />
          <label class="input__label" for="{{value}}-{{@index}}">{{ text }}</label>
        </div>
        {{/each}}
      </div>
    {{else}}
      {{#each items}}
      <a {{#if value}} href="#{{ value }}" {{/if}} class="pagination__link {{#if active}} is-active{{/if}}">
          {{ text }}
      </a>
      {{/each}}
    {{/if}}
    <a class="button rounded-circle" data-table-scroll="end">&#x276F;</a>
</div>
{
  "controls": {
    "circle": true
  },
  "items": [
    {
      "value": 1,
      "text": "1"
    },
    {
      "value": 2,
      "text": "2"
    },
    {
      "value": 3,
      "text": "3",
      "active": true
    },
    {
      "value": 4,
      "text": "4"
    },
    {
      "text": "..."
    },
    {
      "value": 17,
      "text": "17"
    },
    {
      "value": 18,
      "text": "18"
    },
    {
      "value": 19,
      "text": "19"
    },
    {
      "value": 20,
      "text": "20"
    }
  ],
  "radio": true
}
  • Content:
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
    
      &__link {
        display: block;
        font-family: var(--headline-font-family);
        font-weight: 500;
        font-size: 1.5rem;
        cursor: pointer;
      }
    
      .is-disabled {
        opacity: .5;
        pointer-events: none;
        cursor: default;
      }
    
      .button {
        flex: none;
      }
    
      .is-active {
        color: var(--brand-color-secondary);
      }
    
      .radio-group {
        display: flex;
        gap: 1rem;
      }
      input[type=radio] {
        display: none;
        + label {
          display: block;
          cursor: pointer;
        }
        &:checked + label {
          color: var(--brand-color-secondary);
        }
      }
    
    }
  • URL: /components/raw/pagination/pagination.scss
  • Filesystem Path: src/components/molecules/pagination/pagination.scss
  • Size: 664 Bytes

No notes defined.