JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q55572F
  • License 0BSD

Accessible React UI primitives — Button, Input, Card, Table, Dialog, and more

Package Exports

  • @surf-kit/core

Readme

@surf-kit/core

Accessible React UI primitives for the surf-kit design system

Part of the surf-kit design system.

Install

npm install @surf-kit/core @surf-kit/theme @surf-kit/tokens

Quick Example

import { Button, Card, Badge } from '@surf-kit/core';

function App() {
  return (
    <Card>
      <Badge intent="info">New</Badge>
      <h2>Hello surf-kit</h2>
      <Button onPress={() => alert('Pressed!')}>Get Started</Button>
    </Card>
  );
}

What's Included

Primitives — Box, Text, Stack, Grid, Separator, VisuallyHidden

Inputs — Button, IconButton, TextInput, TextArea, Select, Checkbox, RadioGroup, Switch, SearchInput

Feedback — Badge, Spinner, Skeleton, Alert, Toast, ProgressBar, AvatarGenerationLoader

Overlays — Dialog, Popover, Tooltip, Sheet, DropdownMenu

Navigation — Tabs, Breadcrumb, Sidebar

Data — Table, DataList, Card, Accordion

All interactive components use React Aria for WCAG 2.1 AA accessibility out of the box.

Docs

License

0BSD