Socket
Book a DemoInstallSign in
Socket

@ds-pack/components

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ds-pack/components

A bare-bones component library built using:

1.0.18
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@ds-pack/components

A bare-bones component library built using:

  • React
  • Vanilla Extract
  • Rainbow Sprinkles

Setup:

Install:

# Install the package and it's peerDependencies
yarn add @ds-pack/components @ds-pack/use-refs @vanilla-extract/css @vanilla-extract/dynamic rainbow-sprinkles nanopop

Usage with Next.js:

// within `layout.tsx` or `_app.tsx`:
import '@ds-pack/components/dist/vars.css'
import '@ds-pack/components/dist/reset.css'

// ...
// within `layout.tsx` or `_document.tsx`:
import { themeClass } from '@ds-pack/components'

function Layout({ children }) {
  return <html className={themeClass}>// ...</html>
}

Usage with other frameworks (create-react-app, vanilla webpack applications, etc):

// Import the styles:
import '@ds-pack/components/dist/vars.css'
import '@ds-pack/components/dist/reset.css'
import { Button } from '@ds-pack/components'

Tools:

  • Typescript
  • Jest

Cutting a Release:

  • Update the version in package.json
  • Push to main (with associated changes)
  • Create release on the repo
    • Workflow will kick off and build + publish the new version

Docs:

Components

Hooks

System Props:

  • is - essentially forwardedAs from styled-components, but easier to type 😄
  • testIds - An optional prop that allows for passing in data-testid to the rendered components

FAQs

Package last updated on 06 Feb 2023

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.