npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@frankhoodbs/bootstrap-responsive-grid-cmp

v1.2.11

Published

Utility to manage responsive bootstrap grid

Downloads

89

Readme

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

| Name | Type | Description | |:--------------------|:---------|:------------------------------------------------------------------------------------------------| | data-slots-number | string | The number of slots that the grid should render. | | data-cols-per-row | string | Number of the columns in each row. A different value at different step breakpoints is expected. |

CSS variables

| Name | default | Description | |:---------------------------------------------------------|:----------|:-----------------------------------------------------------| | --bootstrap-responsive-grid-row-gap | 0 | Gap between rows | | --bootstrap-responsive-grid-separator-border-width | 1px | Width of the separator border between rows | | --bootstrap-responsive-grid-separator-inset-right-left | 0 | Left and right values of the separator border between rows | | --bootstrap-responsive-grid-separator-border-style | solid | Style of the separator border between rows | | --bootstrap-responsive-grid-separator-border-color | #000000 | Color of the separator border between rows |

CSS theme classes

| Name | Description | |:--------------------------------|:---------------------------------------------------------------------------------| | .with-separator-between-rows | If present on the component instance a separator is rendered between rows | | .with-separator-above | If present on the component instance a separator is rendered above the first row | | .with-separator-below | If 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