@tommy/anvil (0.1.0)

Published 2026-07-22 14:46:59 +00:00 by tommy

Installation

@tommy:registry=
npm install @tommy/anvil@0.1.0
"@tommy/anvil": "0.1.0"

About this package

Anvil Component Library

Unstyled, accessible component library built on Kobalte for Solid.js applications.

Features

  • 🎨 Unstyled by default - Bring your own styles, no CSS bloat
  • Accessible - Built on Kobalte's accessible foundations
  • 🧩 Composable - Mix and match components as needed
  • 📖 Well-documented - Interactive documentation site
  • Fully tested - Comprehensive test coverage with Vitest

Installation

npm install @homelab/anvil

Usage

import { Button, TextField } from '@homelab/anvil';

// Apply your own styles
<Button class="my-button-styles">Click me</Button>

// Use data attributes for styling variants
<Button variant="primary" size="lg">
  Large Primary Button
</Button>

Components

  • Button - Versatile button with variants and sizes
  • TextField - Text input with label, description, and validation
  • Separator - Visual divider with multiple styles
  • Tooltip - Contextual information on hover

Development

# Install dependencies
pnpm install

# Run component documentation
pnpm run docs:dev

# Run tests
pnpm run test

# Build library
pnpm run build

Documentation

Run pnpm run docs:dev to view the interactive component documentation.

Testing

Run pnpm run test to execute the test suite with Vitest.

Dependencies

Dependencies

ID Version
@kobalte/core ^0.13.11

Development dependencies

ID Version
@biomejs/biome ^2.4.11
@solidjs/testing-library ^0.8.10
@storybook/addon-a11y ^10.3.5
@storybook/addon-docs ^10.3.5
@storybook/addon-links ^10.3.5
@storybook/addon-vitest ^10.3.5
@testing-library/jest-dom ^6.9.1
@testing-library/user-event ^14.6.1
@types/node ^24.12.2
@unocss/preset-icons ^66.6.8
@unocss/preset-uno ^66.6.8
@unocss/transformer-directives ^66.6.8
@unocss/transformer-variant-group ^66.6.8
@vitest/browser ^4.1.9
jsdom ^27.4.0
solid-js ^1.9.12
storybook ^10.3.5
storybook-solidjs-vite ^10.0.12
typescript ^5.9.3
unocss ^66.6.8
vite ^7.3.2
vite-plugin-solid ^2.11.12
vitest ^4.1.9

Peer dependencies

ID Version
solid-js ^1.9.0
Details
npm
2026-07-22 14:46:59 +00:00
219
latest
145 KiB
Assets (1)
anvil-0.1.0.tgz 145 KiB
Versions (1) View all
0.1.0 2026-07-22