@ludanin/hestia
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@ludanin/hestia

Lightweight CSS grid with javascript utilities

NPM

Install

npm install --save @ludanin/hestia

Usage

import React from "react"
import "@ludanin/hestia/min.css"

const App: React.FC = () => (
  <>
    <AppHead />
    <AppBody>
      <div type="container">
        <div type="row">
          <div col="8" behind="2" smDown="10" smDownBehind="1">
            Column Content
          </div>
        </div>
      </div>
    </AppBody>
  </>
)

TypeScript type definitions

If you're using TypeScript it will be necessary to extend JSX HTML Attributes types according to the following snippet:

import { HestiaHTMLAttributes } from "@ludanin/hestia/types"

declare module "react" {
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
  export interface HTMLAttributes<T> extends HestiaHTMLAttributes {}
}

const App: React.FC = () => (
  <>
    <AppBody />
  </>
)

License

MIT © ludanin

Package Sidebar

Install

npm i @ludanin/hestia

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

59.8 kB

Total Files

14

Last publish

Collaborators

  • ludanin