0.1.5 • Published 3 years ago

swigg v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

swigg

NPM JavaScript Style Guide

Install

npm install --save swigg

Usage

import { Button } from 'swigg'

const App = () => (
  <Button>Click Me</Button>
)

Responsive Nav

import { MainNav } from 'swigg'

const App = () => (
  <MainNav bg="#f8f8f8" fontColor="slateblue" breakPoint="900px" isSticky={true} logo={{ url: 'https://www.raymondware.com/images/footer-logo.png', alt: "test logo" }}>
    <ul>
      <li><a href="#">Projects</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
  </MainNav>
)

Auto Grid

import { AutoGrid, ProjectCard } from 'swigg'

const App = () => (
  <AutoGrid bg="#212121" minWidth="250px" spacing="45px" padding="45px">
    <ProjectCard maxWidth="250px" />
    <ProjectCard maxWidth="250px" />
    <ProjectCard maxWidth="250px" />
    <ProjectCard maxWidth="250px" />
    <ProjectCard maxWidth="250px" />
    <ProjectCard maxWidth="250px" />
  </AutoGrid>

Card

import { ProjectCard } from 'swigg'

const App = () => (
  <ProjectCard maxWidth="250px" title="Dynamic" link="https://link" children="This is the description" techList={["party", "people", "tags"]} bgOverlay="tomato" bgImage="https://linktoimage" />

Gallery

import { Gallery } from 'swigg'

const someFunc = () => {
  alert('Hi, this is a callback')
}

const App = () => (
  <Gallery 
    bg = "#fcfcfc"
    padding = "45px"
    spacing = "25px"
    colSize = "350px"
    items = {
      [{
        clickCallback: someFunc,
        image: "https://someimg"
      }, 
      {
        image: "https://someimg"
      },
      {
        image: "https://someimg"
      },
      {
        image: "https://someimg"
      }
      ]
    }
  />
)

License

MIT © raymondware

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago