Skip to content

Waffle

A hundred small cells showing a share of 100.

$149 once · every Pro piece

Customize

Cells fill in reading order with a fast white-hot flash that cools through the accent to bone, and a new value fills or empties only the difference. Split into two or three parts it reads in grey steps; point at a part in the grid, the legend or with the arrow keys and it lifts to bone while the rest recede. Options on the viz-kit: squircle, dot or honeycomb cells, a 20 × 5 strip, a hatched remainder, a legend that hides a part (its cells empty out) and locks on hold, a tooltip panel, an opt-in accent hover, and loading and empty states.

Install

npx shadcn@latest add @obsyde/waffle

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Waffle } from '@/components/obsyde/ember/waffle/Waffle';

export function Example() {
  return (
    <Waffle />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/waffle/Waffle.tsxcomponent
  • ember/waffle/waffle.cssstyles
  • ember/waffle/WaffleDemo.tsxdemo
  • ember/viz-kit/viz-kit.cssshared
  • ember/viz-kit/Tooltip.tsxshared
  • ember/viz-kit/focus.tsshared
  • ember/viz-kit/patterns.tsxshared
  • ember/viz-kit/roll.tsshared
  • ember/shared/rolling-number.cssshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/viz-kit/scale.tsshared
  • ember/viz-kit/motion.tsshared
  • ember/viz-kit/chart.tsxshared
  • ember/shared/ember.cssshared
  • ember/viz-kit/touch.tsshared
  • ember/viz-kit/keyboard.tsshared
  • ember/viz-kit/size.tsshared
  • ember/viz-kit/Legend.tsxshared
  • ember/viz-kit/demo.tsxshared
  • ember/viz-kit/demo.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
valueValuenumber64
categoriesPartsnumber1
changingChangingbooleanfalse
shapeShape'square' | 'squircle' | 'dot' | 'hex''square'
layoutLayout'square' | 'strip''square'
emptyEmpty cells'faint' | 'hatch''faint'
hoverHover'soft' | 'hot''soft'
tooltipTooltip'none' | 'panel''none'
statusStatus'ready' | 'loading' | 'empty''ready'
cellCell sizenumber22
gapGapnumber4