• Stars
    star
    946
  • Rank 48,319 (Top 1.0 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Render anything as HTML checkboxes

Checkboxland

a grid of checkboxes displaying the words 'Welcome to Checkboxland

Checkboxland is a JavaScript library for rendering anything as HTML checkboxes.

You can use it to display animations, text, images, video, and arbitrary data. It also supports plugins, so you can add your own APIs.

Checkboxland is dependency-free, framework-agnostic, and fun! 🙃

For more details see the docs.

Setup

Install this package via npm:

npm install checkboxland

Example

Import it into your application, and create a checkbox grid:

import { Checkboxland } from 'checkboxland';

const cbl = new Checkboxland({ dimensions: '8x7', selector: '#my-container' });

// Create a data representation of the heart.
const heart = [
  [0,1,1,0,0,1,1,0],
  [1,0,0,1,1,0,0,1],
  [1,0,0,0,0,0,0,1],
  [1,0,0,0,0,0,0,1],
  [0,1,0,0,0,0,1,0],
  [0,0,1,0,0,1,0,0],
  [0,0,0,1,1,0,0,0],
];

// This updates the grid with the data we provided.
cbl.setData(heart);

a grid of checkboxes displaying the shape of a heart

Contributing

Checkboxland is designed to be extendable. If you want to add a feature, first ask yourself if it could be done as an external plugin.

If you contribution requires a change to the core library, follow these steps:

  1. Fork/Clone the repo.
  2. Make your changes on a feature branch.
  3. Run the docs site locally (npm run dev) to confirm that the demos still work as expected.
  4. Submit a Pull Request.

License

MIT

More Repositories

1

after-dark-css

Recreating After Dark screensavers in CSS.
CSS
1,167
star
2

anchorjs

Add deep anchor links to your docs.
JavaScript
883
star
3

poor-mans-styleguide

A frontend styleguide for the pragmatic.
HTML
471
star
4

your-life

HTML
249
star
5

franklin

A static site framework for online books.
CSS
140
star
6

twitter-listbot

A simple twitter bot that retweets the contents of a twitter list.
JavaScript
61
star
7

music-box-fun

A web app for making music box songs.
JavaScript
54
star
8

middleman-navtree

For building navigation trees & menus in Middleman.
Ruby
45
star
9

bryanbraun.github.io

My personal website.
HTML
23
star
10

alt-react-demo

Demo for a build-free alternative to React, written in vanilla JS.
JavaScript
18
star
11

connect-four

Connect Four, in Javascript.
JavaScript
17
star
12

lets-get-creative

A collection of high-quality, free, online creativity tools.
TypeScript
12
star
13

infinitely-nested-iframes

I N C E P T I O N
HTML
7
star
14

africa-map-raphael

A Javascript-friendly map of Africa using the Raphael.js library.
7
star
15

tiny-book-of-rules

A online book about the Drupal Rules module, written by Johan Falk.
5
star
16

twitter-timeline-eradicator

This Chrome Extension displays all of Twitter except the Timeline.
JavaScript
4
star
17

writer

A Drupal Blogging Theme For Developers
PHP
3
star
18

hubot-answers

Let Hubot answer your yes/no questions.
CoffeeScript
3
star
19

lit-element-demo

A demo app for exploring a web-component-based React alternative
JavaScript
3
star
20

landmark-articles

My personal list of landmark articles for personal/professional development in the web industry.
HTML
2
star
21

github-wiki-html-test

Testing which html tags are supported in Github Wikis
2
star
22

advent-of-code

My collection of advent of code exercises
TypeScript
2
star
23

petitions-newslink

Tracking public engagement by linking news items to White House petitions.
JavaScript
2
star
24

googly

A chrome extension for adding Googly eyes to any webpage.
JavaScript
1
star
25

propagate

A series of demos about Javascript Events
JavaScript
1
star
26

jTutor

Real-time javascript programming feedback in the browser.
JavaScript
1
star
27

hello

A classy introduction page.
HTML
1
star
28

alchemist

A simple, incomplete javascript game, built as a personal javascript exercise.
JavaScript
1
star
29

gdi-personal-website

Slides for a Girl Develop It workshop: Building a Personal Website with Github Pages
JavaScript
1
star