@molecule/app-job-listing-row-svelte

Feature · job-listing-row · App (browser) · v1.1.4 · Apache-2.0

Job-board row with title, company, location, type, salary range, posted date

npm install @molecule/app-job-listing-row-svelte

npm · Source on GitHub

How it works

@molecule/app-job-listing-row-svelte is a ready-made job-listing-row feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.

<script lang="ts">
  import { JobListingRow } from '@molecule/app-job-listing-row-svelte'

  declare function openJob(): void
</script>

<JobListingRow
  title="Senior Frontend Engineer"
  company="Acme Corp"
  location="Remote · US"
  type="Full-time"
  salary="$130k–$160k"
  postedAt="2 days ago"
  onclick={openJob}
/>

Works with: @molecule/app-svelte, @molecule/app-ui, @molecule/app-ui-svelte

Reference

Svelte job-board listing row — the Svelte counterpart of @molecule/app-job-listing-row-react, with the same props and the same DOM.

Exports JobListingRow — title + company + location + employment type + salary + posted date, with optional leading logo, tag chips, and right-side actions.

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

<script lang="ts">
  import { JobListingRow } from '@molecule/app-job-listing-row-svelte'

  declare function openJob(): void
</script>

<JobListingRow
  title="Senior Frontend Engineer"
  company="Acme Corp"
  location="Remote · US"
  type="Full-time"
  salary="$130k–$160k"
  postedAt="2 days ago"
  onclick={openJob}
/>

Type

feature

Installation

npm install @molecule/app-job-listing-row-svelte @molecule/app-svelte @molecule/app-ui @molecule/app-ui-svelte svelte

API

Interfaces

JobListingRowProps

Props for JobListingRow.

interface JobListingRowProps {
  /**
   * Title of the role. A string renders as text; a node arrives as a
   * same-named snippet.
   */
  title: Snippet | string
  /** Company / employer display; a node arrives as a snippet. */
  company?: Snippet | string
  /** Location string ("Remote · US" / "London, UK"); a node arrives as a snippet. */
  location?: Snippet | string
  /** Employment type ("Full-time", "Contract", "Internship"); a node arrives as a snippet. */
  type?: Snippet | string
  /** Salary range display ("$80k–$120k"); a node arrives as a snippet. */
  salary?: Snippet | string
  /** Posted-at relative or absolute display; a node arrives as a snippet. */
  postedAt?: Snippet | string
  /** Optional company logo / icon; arrives as a snippet. */
  leading?: Snippet | string
  /** Optional right-side actions (Save, Apply); arrive as a snippet. */
  actions?: Snippet | string
  /** Tags / chips (Remote, React, Hybrid); arrive as a snippet. */
  tags?: Snippet | string
  /**
   * Activates the row: while it is set, an empty, transparent native button
   * covers the whole row and calls this on click — the whole row is the click
   * target, and Enter / Space activate the button natively. The row is named
   * by the title (the `<h3>` itself takes the id the button points at with
   * `aria-labelledby`); the `actions` and `tags` slots sit above the button
   * and keep their own clicks.
   */
  onClick?: () => void
  /** Extra classes. */
  className?: string
}

Constants

JobListingRow

const JobListingRow: LegacyComponentType

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-svelte ^3.13.0 || ^4.0.0
  • @molecule/app-ui ^1.0.1
  • @molecule/app-ui-svelte ^1.1.0
  • svelte ^5.0.0

Runtime Dependencies

  • @molecule/app-svelte
  • @molecule/app-ui
  • @molecule/app-ui-svelte
  • svelte

Requires a wired ClassMap bond — getClassMap() throws before wiring.

The location value is prefixed with a hardcoded 📍 glyph and the meta fields are joined with literal middle-dot separators; there is no prop to change or localise those separators.

onClick makes the whole row clickable through a transparent native button over it — the row is named by the title (the <h3> itself takes the id the button points at with aria-labelledby), and the inner controls sit above it and keep their own clicks. Put a real link or button in actions for the other row actions.

Node-valued props (title, company, location, type, salary, postedAt, leading, actions, tags) arrive as snippets; strings render as text.