@emilyc246/ui-components
v0.2.1
Published
Private shadcn-style base UI component package with WCAG-friendly wrappers
Downloads
65
Maintainers
Readme
@emilyc246/ui-components
A shared shadcn-style UI component package with accessibility baked in, designed for React + Tailwind.
Components
Accordion,AccordionItem,AccordionTrigger,AccordionContentAlert,AlertTitle,AlertDescriptionAlertDialog,AlertDialogTrigger,AlertDialogContent,AlertDialogHeader,AlertDialogFooter,AlertDialogTitle,AlertDialogDescription,AlertDialogAction,AlertDialogCancelAvatar,AvatarImage,AvatarFallbackBadgeButtonCard,CardHeader,CardTitle,CardDescription,CardContent,CardFooterCheckboxDialog,DialogTrigger,DialogContent,DialogHeader,DialogFooter,DialogTitle,DialogDescriptionDropdownMenu,DropdownMenuTrigger,DropdownMenuContent,DropdownMenuItem,DropdownMenuCheckboxItem,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuLabel,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuGroup,DropdownMenuPortal,DropdownMenuSub,DropdownMenuSubTrigger,DropdownMenuSubContentFormFieldInputLabelPopover,PopoverTrigger,PopoverContentProgressRadioGroup,RadioGroupItemScrollArea,ScrollBarSelect,SelectTrigger,SelectContent,SelectItem,SelectLabel,SelectGroup,SelectValue,SelectSeparatorSeparatorSheet,SheetTrigger,SheetContent,SheetHeader,SheetFooter,SheetTitle,SheetDescription,SheetCloseSkeletonSkipLinkSwitchTable,TableHeader,TableBody,TableFooter,TableRow,TableHead,TableCell,TableCaptionTabs,TabsList,TabsTrigger,TabsContentTextareaThemeProvider,ThemeToggleToaster,toastToggleTooltip,TooltipTrigger,TooltipContent,TooltipProviderVisuallyHidden
Install
npm install @emilyc246/ui-componentsPeer dependencies (react and react-dom v19+) must be installed in your project.
Usage
import { Button, Input, FormField } from "@emilyc246/ui-components";Development
pnpm installBuild
pnpm buildThis runs tsup to produce ESM, CJS, and type declarations in dist/.
Type-check
pnpm typecheckTest
pnpm testAdding components
A components.json is included so you can add more primitives with the shadcn CLI:
npx shadcn@latest add <component>Publish to npm
Make sure you are logged in:
npm loginBump the version:
npm version patch # or minor / majorBuild the package:
pnpm buildPublish:
npm publish --access public
Because the package is scoped (
@emilyc246/),--access publicis required on the first publish. Subsequent publishes will default to the same access level.
Notes
- Components use semantic utility classes such as
bg-primary,text-foreground, andborder-border. - Accessibility is treated as a default requirement rather than an optional enhancement.
