# spartan/ui

> shadcn/ui for Angular: accessible brain primitives from npm plus helm styles the CLI copies into your project.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/spartan-ng

free

shadcn/ui for Angular: accessible brain primitives from npm plus helm styles the CLI copies into your project.

by spartan-ng[GitHub](https://github.com/spartan-ng/spartan)[npm](https://npmjs.com/package/@spartan-ng/brain)

[visit](https://www.spartan.ng/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://www.spartan.ng](https://www.spartan.ng/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Angular Material](https://tastebase.ehsanulsiam.workers.dev/browse/angular-material)

Google's Material 3 components for Angular, built on the CDK and themed through Sass design tokens.

no preview

### [PrimeNG](https://tastebase.ehsanulsiam.workers.dev/browse/primeng)

The largest Angular component suite: 80+ components, a feature-rich DataTable and TreeTable, preset themes.

no preview

### [TanStack Table](https://tastebase.ehsanulsiam.workers.dev/browse/tanstack-table)

Headless table logic: sorting, filtering, pagination, selection and grouping, rendered with your own markup.

no preview

### [Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

Clean 24px stroke icons, one component per icon, the default set for shadcn/ui.

## For your agent

##### Install

`npm i -D @spartan-ng/cli && ng g @spartan-ng/cli:init`

##### Use it for

- an Angular app that should look like shadcn/ui, on Tailwind v4, with component source you own
- an Angular admin dashboard with sidebar, data table, command menu, sheets, charts and sonner toasts
- porting a shadcn/ui React design to Angular with the same tokens and component names

##### Skip it when

- Material Design, or a team that wants an installed, versioned kit instead of owned source: use angular-material
- an Angular project that will not adopt Tailwind v4: helm styles are Tailwind classes; use angular-material

##### What's inside57 free

- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip

##### Facts

**Frameworks**
angular

**Styling**
copy-in

**Weight**
medium

**Accessibility**
strong

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Pairs with

[TanStack Table](https://tastebase.ehsanulsiam.workers.dev/browse/tanstack-table)[Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

##### Alternatives

[Angular Material](https://tastebase.ehsanulsiam.workers.dev/browse/angular-material)[PrimeNG](https://tastebase.ehsanulsiam.workers.dev/browse/primeng)

[Compare spartan/ui with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/spartan-ng-alternatives)

```
// add parts: ng g @spartan-ng/cli:ui (pick button, dialog)
import { Component } from "@angular/core"
import { HlmButtonImports } from "@spartan-ng/helm/button"
import { HlmDialogImports } from "@spartan-ng/helm/dialog"

@Component({
  selector: "app-invite",
  imports: [HlmDialogImports, HlmButtonImports],
  template: `
    <hlm-dialog>
      <button hlmDialogTrigger hlmBtn variant="outline">Invite</button>
      <hlm-dialog-content *hlmDialogPortal="let ctx">
        <h3 hlmDialogTitle>Invite people</h3>
        <button hlmBtn hlmDialogClose>Done</button>
      </hlm-dialog-content>
    </hlm-dialog>
  `,
})
export class Invite {}
```

https://www.spartan.ng

Loading website

[Visit](https://www.spartan.ng/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
