1.2.3 • Published 6 days ago

@frankhoodbs/bootstrap-responsive-grid-cmp v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 days ago

Bootstrap Responsive Grid Component

Component that renders a dynamic grid with custom slots. The number of rows and columns is determined by the given properties. Its appearance, especially the separators, is highly customizable via CSS variables.

Componente che visualizza una griglia dinamica con slot personalizzati. Il numero di righe e colonne è determinato dalle props fornite in input. Il suo aspetto, in particolare i separatori, è altamente personalizzabile tramite variabili CSS.

Version License

API Reference

Props

NameTypeDescription
data-slots-numberstringThe number of slots that the grid should render.
data-cols-per-rowstringNumber of the columns in each row. A different value at different step breakpoints is expected.

CSS variables

NamedefaultDescription
--bootstrap-responsive-grid-row-gap0Gap between rows
--bootstrap-responsive-grid-separator-border-width1pxWidth of the separator border between rows
--bootstrap-responsive-grid-separator-inset-right-left0Left and right values of the separator border between rows
--bootstrap-responsive-grid-separator-border-stylesolidStyle of the separator border between rows
--bootstrap-responsive-grid-separator-border-color#000000Color of the separator border between rows

CSS theme classes

NameDescription
.with-separator-between-rowsIf present on the component instance a separator is rendered between rows
.with-separator-aboveIf present on the component instance a separator is rendered above the first row
.with-separator-belowIf present on the component instance a separator is rendered below the last row

Usage/Examples

<bootstrap-responsive-grid-cmp
  class="BootstrapResponsiveGridExampleCmp container with-separator-above with-separator-between-rows with-separator-below"
  data-slots-number="18"
  :data-cols-per-row="smAndDown ? '1' : mdOnly ? '2' : lgOnly ? '3' : '4'"
>
  <template v-for="n in 18" #[`slot-${n}`] :key="`slot-${n}`">
    <div
      style="
        background-color: red;
        height: 100%;
        min-height: 200px;
        padding: 10px;
      "
    >
      <p v-if="n === 3">
        Slot {{ n }}
        <br />
        <br />
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores
        assumenda corporis dolore, eaque earum fugit id ipsa magnam minima
        modi officiis perspiciatis praesentium, quae quos repellendus
        similique sint ullam. Nesciunt nulla quae quisquam quod. Accusantium
        cupiditate ex fugiat magni obcaecati perferendis perspiciatis quasi
        rem! Amet et possimus provident soluta vel.
      </p>
      <span v-else>Slot {{ n }}</span>
    </div>
  </template>
</bootstrap-responsive-grid-cmp>

Screenshots

Component Screenshot

1.2.3

6 days ago

1.2.2

19 days ago

1.2.1

22 days ago

1.2.0

23 days ago

1.1.17

23 days ago

1.1.16

2 months ago

1.1.15

2 months ago

1.1.14

2 months ago

1.1.13

2 months ago

1.1.12

3 months ago

1.1.11

3 months ago

1.1.10

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.1

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago