Socket
Book a DemoInstallSign in
Socket

dibk-design

Package Overview
Dependencies
Maintainers
3
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dibk-design

Shared components for DIBK applications

latest
npmnpm
Version
9.1.0
Version published
Maintainers
3
Created
Source

DIBK design

Shared components for DIBK applications

Getting Started

  • Install Dependencies

    This project uses pnpm as the package manager.

    pnpm install
    
  • Run Storybook for Development

    To view and work on components in isolation, run the Storybook development server:

    pnpm run storybook
    

    This will open Storybook in your browser, usually at http://localhost:6006.

Building for Production

When you need to create a distributable version of the library or the Storybook site, use the following commands.

Build Library

Bundles the library for production and generates TypeScript types. The output is saved to the /dist folder.

pnpm run build

Build TypeScript Types

Only generates the TypeScript declaration files (.d.ts).

pnpm run build:types

Build Storybook

Builds the Storybook as a static web application. The output is saved to the /storybook-static folder.

pnpm run build-storybook

Use with Next.js and Tailwind

  • Import dibk-design.css file in your globals.css
@import 'tailwindcss';
@import './node_modules/dibk-design/dist/dibk-design.css';
  • Import component from the library
"use client"
import React from 'react'
import { Button } from 'dibk-design'

const Home = () => {
  return (
    <main>
      <Button onClick={() => {}} size="small" color="primary" content="Button">
          I'm a button
      </Button>
    </main>
  )
}

export default Home

FAQs

Package last updated on 09 Jul 2025

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