• Joined on 2025-03-11

@cam/velocityui (0.1.8)

Published 2026-03-04 16:54:12 +00:00 by cam

Installation

@cam:registry=
npm install @cam/velocityui@0.1.8
"@cam/velocityui": "0.1.8"

About this package

@cam/velocityui

Modern, accessible React UI components with scoped styles and TypeScript support.

Install

npm install @cam/velocityui

Peer dependencies:

  • react >= 18
  • react-dom >= 18

Usage

Import the stylesheet once at your app root:

import '@cam/velocityui/dist/style.css'

Use components in your app:

import { Button, Card, Input, Title } from '@cam/velocityui'

export function Example() {
  return (
    <Card variant="shadow">
      <Card.Header>
        <Title level="h2">Welcome</Title>
      </Card.Header>
      <Card.Body>
        <Input label="Email" placeholder="you@example.com" />
        <Button>Continue</Button>
      </Card.Body>
    </Card>
  )
}

Available Exports

The library exports all components from src/index.ts, including:

  • Form/input: Input, Textarea, Select, Checkbox, RadioGroup, Switch, Slider, NumberInput, FileUpload
  • Layout/content: Card, Title, Badge, Alert, Divider, Accordion, Tabs, Table
  • Feedback/overlay: Tooltip, Dialog, Popover, Dropdown, Spinner, Skeleton, Progress, ToastProvider, useToast
  • Navigation/misc: Avatar, Tag, EmptyState, Breadcrumb, Pagination, Stepper

Local Development

From the workspace root:

pnpm --filter velocityui build

Build output is written to dist/:

  • dist/index.js (ESM)
  • dist/index.cjs (CJS)
  • dist/index.d.ts (types)
  • dist/style.css (bundled styles)

Watch mode:

pnpm --filter velocityui dev

Typecheck:

pnpm --filter velocityui lint

Run tests:

pnpm --filter velocityui test
pnpm --filter velocityui test:run

Dependencies

Development Dependencies

ID Version
@testing-library/jest-dom ^6.9.1
@testing-library/react ^16.3.2
@testing-library/user-event ^14.6.1
@types/react ^18.3.3
@types/react-dom ^18.3.0
@vitejs/plugin-react ^4.3.1
@vitest/coverage-v8 ^4.0.18
jsdom ^28.1.0
vite ^5.3.1
vite-plugin-dts ^3.9.1
vitest ^4.0.18

Peer Dependencies

ID Version
react >=18.0.0
react-dom >=18.0.0
Details
npm
2026-03-04 16:54:12 +00:00
0
55 KiB
Assets (1)
Versions (10) View all
0.1.12 2026-03-04
0.1.11 2026-03-04
0.1.10 2026-03-04
0.1.9 2026-03-04
0.1.8 2026-03-04