Skip to content
Skills Library
Programming · Building & coding

headless-ui

/headless-ui

Use @momentumcms/headless inside generated Momentum apps. Use when building custom public UI, composing accessible primitives, configuring global styles for hdl-* elements, or adding app-level tests around headless interactions.

Licence
MIT
Last repository change
14.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 14.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use @momentumcms/headless inside generated Momentum apps. Use when building custom public UI, composing accessible primitives, configuring global styles for hdl-* elements, or adding app-level tests around headless interactions.

Arguments

/headless-ui <feature-or-primitive>
Original author description

Use @momentumcms/headless inside generated Momentum apps. Use when building custom public UI, composing accessible primitives, configuring global styles for hdl-* elements, or adding app-level tests around headless interactions.

How it works

  1. Prefer Headless For
  2. Workflow
  3. Styling Rules
  4. Example Shape
  5. Test Expectations
  6. If You Need More Than Consumption
Original SKILL.md headings · 73 lines, 381 words
SKILL.md preview
---
name: headless-ui
description: Use @momentumcms/headless inside generated Momentum apps. Use when building custom public UI, composing accessible primitives, configuring global styles for hdl-* elements, or adding app-level tests around headless interactions.
argument-hint: <feature-or-primitive>
---

# Use Headless UI In Generated Apps

Use this skill when a generated app needs custom UI built on `@momentumcms/headless`.

## Prefer Headless For

- Public-facing UI that should not look like the admin
- App-specific design systems that still need solid keyboard and ARIA behavior
- Custom menus, dialogs, comboboxes, chips, tabs, and form fields

Use `@momentumcms/admin` when you want the built-in admin screens instead of custom surfaces.

## Workflow

1. Import the needed primitive classes into the Angular component that renders them.
2. Style them from `src/styles.css` or your global Tailwind layer, not from the library.
3. Target `data-slot`, `data-state`, `data-disabled`, and overlay classes such as `.hdl-dialog-panel`.
4. Add visible state readouts for important interactions so browser tests can prove the UI intention.
5. Update app routes or showcase pages if you are adding a reusable demo surface.

## Styling Rules

- Start with design tokens in `@layer base`.
- Add shared recipes in `@layer components`.
- Use host `class=""` only for local one-off overrides.
- For projected child visuals, style the child markup you render inside the primitive.
- Keep `[hidden]` behavior intact for slots that collapse or unmount visually.

## Example Shape

```typescript
import { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';
import { HdlCombobox, HdlComboboxInput, HdlComboboxPopup, HdlOption } from '@momentumcms/headless';

@Component({
	selector: 'app-filter-combobox',
	imports: [HdlCombobox, HdlComboboxInput, HdlComboboxPopup, HdlOption],
	template: `
		<hdl-combobox [value]="selected()" (valueChange)="selected.set($event)">
			<input hdlComboboxInput [value]="query()" (input)="query.set(search.value)" #search />
			<hdl-combobox-popup>
				@for (item of filteredItems(); track item) {
					<hdl-option [value]="item">{{ item }}</hdl-option>
				}
			</hdl-combobox-popup>
		</hdl-combobox>

		<p>Selected: {{ selected() || 'none' }}</p>
	`,
	changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FilterComboboxComponent {
	readonly items = ['Articles', 'Pages', 'Authors', 'Media'];
	readonly query = signal('');
	readonly selected = signal('');
	readonly filteredItems = computed(() => {
		const query = this.query().trim().toLowerCase();
		return query ? this.items.filter((item) => item.toLowerCase().includes(query)) : this.items;
	});
}
```

## Test Expectations

- Unit tests should cover app-specific state mapping and conditional rendering.
- Browser tests should assert the intended behavior, not just the presence of `hdl-*` tags.
- Good assertions: combobox filtering works, menu clicks update the readout, chips remove correctly, dialog actions dismiss as expected.

## If You Need More Than Consumption

If the app task actually requires changing the library itself, switch to the repo skill for maintaining `libs/headless` instead of patching around the library from the app.

Versions

The database has no other skills named headless-ui.

Database snapshot: 13.11.2026 · package version f1b83c9d8079 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100headless-primitive
    Author, extend, or repair primitives in libs/headless. Use when adding a new headless primitive, changing its accessibility contract, updating slots/state attrs, wiring overlay behavior, or expanding the example styling lab and tests.
  • 100radix-ui
    Radix UI unstyled accessible React components. Headless primitives. USE WHEN: user mentions "Radix", "Radix UI", "headless components", "unstyled primitives", asks about "accessible components", "Radix primitives" DO NOT USE FOR: shadcn/ui (use shadcn-ui skill), styled component…
  • 100radix-ui-design-system
    Provides Radix UI patterns for building accessible design systems with headless components, theming, and compound component architecture. Use when building UI with Radix UI primitives or when the user mentions Radix UI, headless components, or accessible component libraries.
  • 95headless-component
    Author or extend unstyled Fluent UI v9 primitives in @fluentui/react-headless-components-preview, including stable hooks, render functions, state data attributes, compound context wiring, tests, exports, and CSS Module stories. Use for any change that adds a headless component…
  • 100radix-ui
    Use when building or customizing accessible headless UI primitives with Radix UI, including dialogs, dropdowns, popovers, portals, focus management, and shadcn foundations.
  • 100hdl-module-design
    Use when writing, refactoring, or deciding how to test an HDL module, component, or IP block (ROHD, Chisel, SpinalHDL, Verilog, VHDL) and you need it parameterized, validated, and covered by exhaustive tests rather than a one-off

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.