Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deku-bloxparty-box

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deku-bloxparty-box

A simple Deku box component

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

deku-bloxparty-box Build Status

A simple Deku component to render a box with a title and children.

Install

npm install deku-bloxparty-box

Usage


import Box from 'deku-bloxparty-box'
import element from 'virtual-element'

export function render() {
  return element(Box, {class: 'SignIn-box', title: 'Sign In'}, [
    dom('input', {type: 'text', name: 'username'})
    dom('input', {type: 'password', name: 'password'})
    dom('button', {type: 'submit'})
  ])
}

Renders

<div class='SignIn-box bp-Box'>
  <div class='bp-Box-head'>
    <span class='bp-Box-title'>Sign In</span>
  </div>
  <div class='bp-Box-content'>
    <input type="text" name="username">
    <input type="password" name="password">
    <button type="submit">
  </div>
</div>

If you do not include a title property the div .bp-Box-head will not be rendered.

CSS

Default styles are available in src/index.css which may be consumed by a transpiler such as PostCSS.

License

MIT

Keywords

FAQs

Package last updated on 27 Nov 2015

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc