1.1.0 • Published 4 months ago

@taep96/solid-columns v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

solid-columns

license npm package github stars follow taep96 on x

Installation

bun install @taep96/solid-columns

Usage

import { Columns } from "@taep96/solid-columns";

<Columns
  class="flex gap-2 *:flex *:flex-1 *:flex-col *:gap-2"
  columns={3} // number (default)
  columns={{ // or breakpoints
    2: "640px", // anything less is 1 column
    3: "768px",
    4: "1024px",
    5: "1280px",
    6: "1536px",
  }}
>
  <div>1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
  <div>5</div>
  <div>6</div>
  <div>7</div>
  <div>8</div>
  <div>9</div>
  <div>10</div>
</Columns>

Props

NameTypeDefaultDescription
columns?number \| Record<number, string>3A fixed amount or and object with breakpoints