Skip to content

Latest commit

 

History

History

README.md

@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

Apache-2.0