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

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-vue

npm · Source on GitHub

How it works

@molecule/app-job-listing-row-vue 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.

import { createApp, defineComponent, h } from 'vue'
import { JobListingRow } from '@molecule/app-job-listing-row-vue'

const App = defineComponent({
  setup() {
    const openJob = (): void => {
      // navigate to the job…
    }
    return () =>
      h(JobListingRow, {
        title: 'Senior Frontend Engineer',
        company: 'Acme Corp',
        location: 'Remote · US',
        type: 'Full-time',
        salary: '$130k–$160k',
        postedAt: '2 days ago',
        onClick: openJob,
      })
  },
})

createApp(App).mount('#app')

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

Reference

Vue job-board listing row.

Exports JobListingRow — title + company + location + employment type + salary + posted date, with optional leading logo, tag chips, and right-side actions. It is the Vue counterpart of @molecule/app-job-listing-row-react: the same props (React names) and the same DOM for the same input.

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

import { createApp, defineComponent, h } from 'vue'
import { JobListingRow } from '@molecule/app-job-listing-row-vue'

const App = defineComponent({
  setup() {
    const openJob = (): void => {
      // navigate to the job…
    }
    return () =>
      h(JobListingRow, {
        title: 'Senior Frontend Engineer',
        company: 'Acme Corp',
        location: 'Remote · US',
        type: 'Full-time',
        salary: '$130k–$160k',
        postedAt: '2 days ago',
        onClick: openJob,
      })
  },
})

createApp(App).mount('#app')

Type

feature

Installation

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

API

Interfaces

JobListingRowProps

Props for JobListingRow.

interface JobListingRowProps {
  /** Title of the role. */
  title: VNodeChild
  /** Company / employer display. */
  company?: VNodeChild
  /** Location string ("Remote · US" / "London, UK"). */
  location?: VNodeChild
  /** Employment type ("Full-time", "Contract", "Internship"). */
  type?: VNodeChild
  /** Salary range display ("$80k–$120k"). */
  salary?: VNodeChild
  /** Posted-at relative or absolute display. */
  postedAt?: VNodeChild
  /** Optional company logo / icon. */
  leading?: VNodeChild
  /** Optional right-side actions (Save, Apply). */
  actions?: VNodeChild
  /** Tags / chips (Remote, React, Hybrid). */
  tags?: VNodeChild
  /**
   * 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

Job-board row — title + company + location + type + salary + posted date with optional leading logo, tag chips, and right-side actions.

The location value is prefixed with the same hardcoded 📍 glyph React renders, and the meta fields carry the same literal middle-dot separators (there is no prop to change or localise them). onClick covers the whole row with an empty, transparent native button that activates it — the whole row is the click target, named by the title (the <h3> itself takes the id the button points at with aria-labelledby), with the inner controls above it keeping their own clicks.

const JobListingRow: DefineComponent<
  ExtractPropTypes<{
    title: null
    company: null
    location: null
    type: null
    salary: null
    postedAt: null
    leading: null
    actions: null
    tags: null
    onClick: { type: PropType<JobListingRowProps['onClick']>; default: undefined }
    className: { type: StringConstructor; default: undefined }
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      title: null
      company: null
      location: null
      type: null
      salary: null
      postedAt: null
      leading: null
      actions: null
      tags: null
      onClick: { type: PropType<JobListingRowProps['onClick']>; default: undefined }
      className: { type: StringConstructor; default: undefined }
    }>
  > &
    Readonly<{}>,
  { onClick: (() => void) | undefined; className: string },
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see JobListingRowProps).

Returns: The job listing row component.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-ui ^1.0.1
  • @molecule/app-ui-vue ^1.1.0
  • @molecule/app-vue ^3.13.0 || ^4.0.0
  • vue ^3.5.0

Runtime Dependencies

  • @molecule/app-ui
  • @molecule/app-ui-vue
  • @molecule/app-vue
  • vue

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 a prop AND a same-named slot; components accept either.