Code Monkey home page Code Monkey logo

npm-shared-components's Introduction

Darkblock.io React Shared Components Library

Getting Started ๐Ÿš€

Install Darkblock's React Shared Component Library using yarn or npm

yarn add @darkblock.io/shared-components
npm i @darkblock.io/shared-components --save

Once the library is installed, import or require components into your codebase, i.e:

import {
  Header,
  Panel,
  Player,
  utils,
  widgetMachine
} from "@darkblock.io/shared-components"

Styling - css classes defined in widget

On any other state than display.

.DarkblockWidget-App {
  .DarkblockWidget-Header {
    .DarkblockWidget-Header-Row {
      .Darkblock-Icon {
        .dbLogo {}
      }
    }
    .DarkblockWidget-Header-Row {
      .title { }
    }
    .DarkblockWidget-Header-Row {
      .content { }
    }
    .DarkblockWidget-Header-Row {
      .inner-button { }
    }
  }
  .DarkblockWidget-Stack-Panel{
    .stack-table {
      .rowheader {
        .name-header {}
        .format-header {}
        .format-date {}
        .format-icon {}
      }
      .row {
        .name {}
        .fomat {}
        .date {}
      }
    }
  }
  .DarkblockWidget-Footer{
    svg
  }
}

On display state

.DarkblockWidget-App {
  .DarkblockWidget-Player {
    .DarkblockWidget-Player-Content {
      .videoPlayer || .audioPlayer || #seadragon-viewer || iframe (pdf) || .zip-panel
    }
  }
  .DarkblockWidget-Stack-Panel{
    .stack-table {
      .rowheader {
        .name-header {}
        .format-header {}
        .date-header {}
      }
      .row {
        .name {}
        .fomat {}
        .date {}
      }
    }
  }
  .DarkblockWidget-Footer{
    svg
  }
}

The styling of these components can be overwritten by redifining these classes.

npm-shared-components's People

Contributors

jennyxlombardo avatar sagethethird avatar raggi-eth avatar gstrader28 avatar

Stargazers

Hasnian avatar

Watchers

Darri Ulfsson avatar

Forkers

joaocampos89

npm-shared-components's Issues

feat: export supported evm platforms

If this package exported the supported evm platforms we could easily build a single purpose evm widget and always keep on sync with this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.