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

ambsa-kit

v0.0.26

Published

React components for web development.

Downloads

8

Readme

Ambsa Kit

Build Status npm

React components for web development.

Table of Contents

Installation

To install:

npm install ambsa-kit

Examples

CodeSandbox Examples

Build Local Examples

To build an example clone the project, run the installer and start the app:

git clone https://github.com/allansachsambia/AmbsaKit.git

Components

Ambsa Hero

image

Use
import { AmbsaNav } from "ambsa-kit";

export default class Index extends React.Component {
  render() {
    const image = "https://picsum.photos/1800/1224/?random";  
    return (
      <div>
        <AmbsaHero image={image} stick="right" brightness="lighter">
          <div>
            <h1 className="ambsa-hero-display">Ambsa Hero</h1>
            <p className="ambsa-hero-lead">
              Maecenas gravida, sem id tincidunt aliquam, lorem nunc vulputate
              mauris, non gravida arcu nisi quis tellus. Integer euismod
              molestie elit, et euismod felis tristique et. Proin tristique
              tempor erat, nec scelerisque diam varius quis. Ut convallis mi non
              tortor egestas vulputate. Maecenas eu varius dui. Duis eget augue
              nec orci fringilla bibendum.
            </p>
          </div>
        </AmbsaHero>
      </div>
    );
  }
}
Properties

Property | Type | Description :---------------|:----------------------|:-------------------------------- image | String | optional; background image url stick | String | optional; background-position position helper for the background image limited to max-width: 1300px. Options: 'left', 'center', and 'right' brightness | String | optional; sets the brightness of the background image. Options: 'darker', 'dark', 'light', and 'lighter'.

Ambsa Footer

image

Use

AmbsaFooter takes two values as attributes: about adds content under the about section, and copyright adds copyright content to the bottom of the page. Both should be of type String. AmbsaFooter also accepts nested content and expects two div elements with specific classNames, the first is explore, the second is icons. The element with the explore className should have nested spans as children which themselves contain links related to the site. The icons section expects links that wrap icons. FontAwesome works well but incorporating it is optional.

import { AmbsaFooter } from "ambsa-kit";

export default class Index extends React.Component {
  render() {
    const about = "Qui ipsum elit ex fabulas.";
    const copyright = "Copyright © 2018 Allan Sachs-Ambia";
    return (
      <div>
      <AmbsaFooter about={about} copyright={copyright}>
        <div className="explore">
          <span>
            <i className="fa fa-angle-right" />
            <a href="http://tinytuba.com/">Tiny Tuba</a>
          </span>
          <span>
            <i className="fa fa-angle-right" />
            <a href="http://heeeeeeeey.com/">Heeeeeeeey</a>
          </span>
          <span>
            <i className="fa fa-angle-right" />
            <a href="http://endless.horse/">Endless Horse</a>
          </span>
          <span>
            <i className="fa fa-angle-right" />
            <a href="http://www.fallingfalling.com/">Falling</a>
          </span>
          <span>
            <i className="fa fa-angle-right" />
            <a href="http://beesbeesbees.com/">Bees Bees Bees</a>
          </span>
        </div>
        <div className="icons">
          <a href="http://www.mail.com">
            <i className="fa fa-envelope" aria-hidden="true" />
          </a>
          <a href="http://www.facebook.com">
            <i className="fa fa-facebook" aria-hidden="true" />
          </a>
          <a href="http://www.twitter.com">
            <i className="fa fa-twitter" aria-hidden="true" />
          </a>
          <a href="http://www.instagram.com">
            <i className="fa fa-instagram" aria-hidden="true" />
          </a>
        </div>
      </AmbsaFooter>
      </div>
    );
  }
}
Properties

Property | Type | Description :---------------|:----------------------|:-------------------------------- about | String | optional; a short website description copyright | String | optional; copyright text

Ambsa Nav

image

image

Use

AmbsaNav takes one prop named 'brand' which expects an image passed in as JSX.
This element can be resized and styled. The child elements passed in will end up as the content in the center of the menu area after the pancake button has been clicked and the navbar expanded, for example: a list of links, with a title.

import BallOfYarn from "./../svgs/BallOfYarn";
import { AmbsaNav } from "ambsa-kit";

export default function App() {
  return (
    <div>
      <AmbsaNav brand={<BallOfYarn />}>
        <div className="menu-title">MENU</div>
        <ul>
          <li className="item">
            <a href="#">LINK 1</a>
          </li>
          <li className="item">
            <a href="#">LINK 2</a>
          </li>
          <li className="item">
            <a href="#">LINK 3</a>
          </li>
          <li className="item">
            <a href="#">LINK 4</a>
          </li>
          <li className="item">
            <a href="#">LINK 5</a>
          </li>
          <li className="item">
            <a href="#">LINK 6</a>
          </li>
        </ul>
      </AmbsaNav>
    </div>
  );
}
Properties

Property | Type | Description :---------------|:----------------------|:-------------------------------- brand | Object | optional; an image passed in as JSX

Ambsa Breadcrumbs

image

Use

Nest links and span elements inside AmbsaBreadcrumbs to make breadcrumbs. To change separators just pass your JSX svg image or plain in as the value of the separator attribute and override the styles to resize.

import { AmbsaBreadcrumbs } from "ambsa-kit";

export default function App() {
  return (
    <div>
      <AmbsaBreadcrumbs>
        <a href="#">Link 1</a>
        <a href="#">Link 2</a>
        <a href="#">Link 3</a>
        <a href="#">Link 4</a>
        <span>Link 5</span>
      </AmbsaBreadcrumbs>
    </div>
  );
}
Properties

Property | Type | Description :---------------|:----------------------|:-------------------------------- separator | Object | optional; an image passed in as JSX

Ambsa Article

image

Use

Include the background image source and title, and nest paragraphs inside AmbsaArticle to produce the article.

import { AmbsaArticle } from "ambsa-kit";

const image =
  "https://github.com/allansachsambia/AmbsaKit/blob/master/examples/src/media/tim-mossholder-530857-unsplash.jpg?raw=true";

export default function App() {
  return (
    <div className="ambsa-kit ambsa-kit-article">
      <AmbsaArticle title="Article" image={image}>
        <p>
          Sed ut perspiciatis unde omnis iste natus error sit voluptatem
          accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae
          ab illo inventore veritatis et quasi architecto beatae vitae dicta
          sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit
          aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos
          qui ratione voluptatem sequi nesciunt.{" "}
        </p>
        <p>
          Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,
          consectetur, adipisci velit, sed quia non numquam eius modi tempora
          incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut
          enim ad minima veniam, quis nostrum exercitationem ullam corporis
          suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis
          autem vel eum iure reprehenderit qui in ea voluptate velit esse quam
          nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
          voluptas nulla pariatur?
        </p>
      </AmbsaArticle>
    </div>
  );
}
Properties

Property | Type | Description :---------------|:----------------------|:-------------------------------- title | String | optional; article title image | String | optional; background image source

Credit

Photos used in examples by Tim Mossholder and Joanna Kosinska