Skip to content
Haze UI

Careers: open role list

A list of roles with team, location, employment type and optional detail links.

pnpm dlx shadcn@latest add @haze/careers-role-list
Open preview in a new tab
Liveno JavaScript

When to use

  • Presenting a small set of current job openings
  • Applicants need to scan location and role type before opening a listing

When not to use

  • Introducing existing teammates rather than open roles; use team-profile-grid

Installation

Add the Haze registry to components.json once, then install Careers: open role list with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/careers-role-list
First time? Registry and theme setup

1. Add to components.json:

{
  "registries": {
    "@haze": "http://localhost:4329/r/{name}.json"
  }
}

2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";

API reference

PropTypeDefaultDescription
idstring"careers-role-list"Unique ID prefix for the section heading.
eyebrowstring"Careers"Label above the title.
titlestringdemo headingCareers section heading.
descriptionstringdemo copyIntroduction; the default identifies the sample roles as examples.
headingLevel1 | 2 | 32Heading level; role titles use the next level.
roles{ title: string; team: string; location: string; type: string; href?: string }[]3 example rolesRoles to display; provide href for a working listing link.
classstring–Additional section classes.

Keyboard interactions

Tab
Move between role links when URLs are provided.

Accessibility

  • Role titles are headings in a list; location and employment type are visible text.
  • The arrow and location icons are decorative and hidden from assistive technology.

Notes for AI

Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.

  • Install and use

    Install the Haze UI block "Careers: open role list" with `npx shadcn@latest add @haze/careers-role-list`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import CareersRoleList from "@/components/haze/blocks/careers-role-list.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/careers-role-list.md

  • Customize with real content

    Adapt the Haze careers-role-list block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, roles, class. Keep the layout, the heading level rules and these accessibility details: Role titles are headings in a list; location and employment type are visible text. The arrow and location icons are decorative and hidden from assistive technology. Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using careers-role-list, check it fits: use it when presenting a small set of current job openings; applicants need to scan location and role type before opening a listing. Avoid it when introducing existing teammates rather than open roles; use team-profile-grid. Alternatives: @haze/team-profile-grid.

Dependencies

  • npm: @lucide/astro
  • @haze/utils
  • @haze/theme (one-time setup)

Source · Original Haze UI work.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog