GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yetric/ui: Yetric Lit component library (yt-* web components)

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

@yetric/ui

Small, framework-independent Lit web components with the yt- prefix. Shipped as TypeScript source (no decorators), so the consuming app's bundler compiles it and controls Lit's version (a peer dependency).

bun add github:yetric/ui#v0.6.0     # or npm: "@yetric/ui": "github:yetric/ui#v0.6.0"
import "@yetric/ui/yt-badge";       // one entry per component, import only what you use
Component What
yt-badge Status label; variant="warn" or "notice", neutral otherwise
yt-toggle-button Button with a pressed state; slots icon, default label, name; fires yt-toggle; stores nothing
yt-search-field Lays out and styles your own label, input and button inside a form; compact for a header
yt-pagination Lays out your prev/next links and current-page label; a script can add a more control and set enhanced
yt-alert Message box with slotted text; variant info/notice/warn, banner for a full-width bar; you choose the ARIA role
yt-chip Navigation pill around a slotted link; current state from the link's aria-current

Content is slotted, so it stays in your HTML. Styling reads --yt-* custom properties (--yt-text, --yt-surface, --yt-border, --yt-warn-*, --yt-notice-*, --yt-pressed-*, ...) with built-in fallbacks, so no token stylesheet is required.

yt-badge, yt-chip, yt-search-field, yt-pagination and yt-alert are presentational: rendered on the server as Declarative Shadow DOM they paint without any JavaScript. yt-toggle-button needs JavaScript and stays hidden until it is defined.

Versioning: SemVer, tags vX.Y.Z. A change to a tag name, attribute, slot or --yt-* property is a major version.

About

Yetric Lit component library (yt-* web components)

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.