Socket
Socket
Sign inDemoInstall

@logrock/pebbles

Package Overview
Dependencies
23
Maintainers
1
Versions
189
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @logrock/pebbles

> Small UI building blocks


Version published
Weekly downloads
6
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.1.1 (2021-11-28)

Bug Fixes

  • project: :bug: fix release script order (2780932)

Readme

Source

LogRock Pebbles

Small UI building blocks

Usage

Pre requisites:

  1. install styled-components.
  2. install styled-breakpoints

Install from NPM

# With Yarn
yarn add @logrock/pebbles

# With the other bad one
npm install @logrock/pebbles

Import components from it

import { NavBar } from "@logrock/pebbles";

Theming

This lib requires styled-components theming to work properly. Just pass a Theme object and you are good to go.

A Theme type is also exposed to guide you, you can also see its source code here

import { ThemeProvider } from 'styled-components'
import { Theme } from '@logrock/pebbles'

const myTheme: Theme = {
    navbar: {
        background: #ff0000
    }
}

const MyNavbar = () => (
    <ThemeProvider theme={myTheme}>
        <NavBar />
    </ThemeProvider>
)

FAQs

Last updated on 28 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc