Button · Dimsum
dimsum.systems · 133 words · saved by 1 readers
An agentic component library for Ruby On Rails. A primary action — link or button — in four variants, four sizes, with an optional icon.
Dark mode Variant Size Shape Leading icon Disabled PropTypeDefault label Button text. Also accepts a content block. String nil href When present, renders an <a>; otherwise a <button>. String nil variant One of VARIANTS: primary, secondary, muted, ghost. String "primary" size One of SIZES: xs (28px, default), sm (32px), md (36px), lg (40px). String "xs" shape One of SHAPES: square (8px radius) · rounded (pill). String "square" icon Caller-selected Central icon name. Add the exact glyph in the consumer with `node script/icons-central.mjs add <name>`, then pass that name here.…
saved by
related reading
- srclsacred.computer
- srclsacred.computer
- 按鈕 - Tocas UIv4.tocas-ui.com
- glimm — shader-driven page transitionsglimm.dev
- rams - Expert Design Reviews on Every PRrams.ai
- Web Interface Guidelinesvercel.com
- Components | The Component Gallerycomponent.gallery
- performative-ui | AI-native React Componentsvorpus.github.io
- GitHub - guillermolg00/morphicons: Any icon morphs into any other — universal morphing for stroke-based icons with spring physics. Zero dependencies, ~7 KB gzip.github.com
- Class: Symbol (Ruby 2.5.0)ruby-doc.org
- Unstyled UI components for accessible design systems · Base UIbase-ui.com
- AI Elementselements.ai-sdk.dev