@surf-kit/core
v0.1.3
Published
Accessible React UI primitives — Button, Input, Card, Table, Dialog, and more
Downloads
271
Maintainers
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/tokensQuick 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.
