nanoviews-component
Installation
SKILL.md
Nanoviews Component
Use the ui-component skill as the base — it holds the framework-agnostic HTML, CSS, and UX/a11y rules. This skill only adds Nanoviews-specific rules on top. The library API itself is the nanoviews skill from the nanoviews repo; this one only fixes the style components are written in.
Component types
-
Simple UI components (UI kit). Must not contain business logic, analytics collection, or hardcoded text (labels etc. are passed in from outside). Compound components expose their parts as children, not props:
// not Select({ options: [...] }) // but Select()( Option({ value: '1' })('Option 1'), Option({ value: '2' })('Option 2') )Children arrive as the render's second argument, named parts as
slot$components picked out withslots$.