New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@frankhoodbs/bootstrap-responsive-grid-cmp

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frankhoodbs/bootstrap-responsive-grid-cmp

Utility to manage responsive bootstrap grid

latest
npmnpm
Version
4.0.2
Version published
Maintainers
0
Created
Source

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-row-align-itemsnormalAlign items on row
--bootstrap-responsive-grid-row-justify-contentnormalJustify content on row
--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

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts