@molecule/app-medication-row-solid
Feature · medication-row · App (browser) · v1.1.1 · Apache-2.0
Medication row — name, dosage, form, instructions, refills remaining, prescriber
npm install @molecule/app-medication-row-solidHow it works
@molecule/app-medication-row-solid is a ready-made medication-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 { MedicationRow } from '@molecule/app-medication-row-solid'
export function Medications() {
return (
<MedicationRow
name="Lisinopril"
dosage="10mg"
form="tablet"
color="#4ade80"
instructions="Take with water in the morning"
prescriber="Dr. Sarah Chen"
supplyDays={14}
refills={2}
actions={<button type="button">Mark taken</button>}
/>
)
}Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Solid medication record row — drug name + dosage/form, instructions, prescriber, days-of-supply and refills-remaining readouts, optional pill-color dot and right-side actions.
Exports MedicationRow — the Solid counterpart of
@molecule/app-medication-row-react's MedicationRow: the same props
(React names), the same ClassMap styling, 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.tsJSDoc, not this file.
Quick Start
import { MedicationRow } from '@molecule/app-medication-row-solid'
export function Medications() {
return (
<MedicationRow
name="Lisinopril"
dosage="10mg"
form="tablet"
color="#4ade80"
instructions="Take with water in the morning"
prescriber="Dr. Sarah Chen"
supplyDays={14}
refills={2}
actions={<button type="button">Mark taken</button>}
/>
)
}
Type
feature
Installation
npm install @molecule/app-medication-row-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
MedicationRowProps
Props for the MedicationRow component.
interface MedicationRowProps {
/** Drug name. */
name: JSX.Element
/** Dosage display ("10mg", "1 tablet"). */
dosage?: JSX.Element
/** Form (tablet, capsule, liquid, etc.). */
form?: JSX.Element
/** Optional accent color (typically used to differentiate pill colors). */
color?: string
/** Instructions text ("Take with food"). */
instructions?: JSX.Element
/** Prescriber display. */
prescriber?: JSX.Element
/** Days of supply remaining. */
supplyDays?: number
/** Refills remaining. */
refills?: number
/** Right-side actions (Mark taken, Refill, Edit). */
actions?: JSX.Element
/** Extra classes. */
className?: string
}
Functions
MedicationRow(props)
Medication record row — drug name, dosage/form, instructions, prescriber, supply countdown, refills remaining. Used in medication-reminder, patient-facing health portals, pharmacy dashboards.
The "Prescribed by" / "N day supply" / "N refills" labels route through
t() with the same keys and default values React uses.
function MedicationRow(props: MedicationRowProps): JSX.Element
props— Component props (seeMedicationRowProps).
Returns: The rendered medication row.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.14.0@molecule/app-ui^1.0.1@molecule/app-ui-solid^1.1.0solid-js^1.8.0
Runtime Dependencies
-
@molecule/app-solid -
@molecule/app-ui -
@molecule/app-ui-solid -
solid-js -
The "Prescribed by" / "N day supply" / "N refills" labels route through
t()under themedication.prefix. The companion@molecule/app-locales-medication-rowbond currently ships onlymedication.prescribedBy—medication.supplyDaysandmedication.refillsfall back to English until the bond gains them. -
Fields you pass are rendered as-is (JSX or strings) — format dosage/dates and translate free text yourself.
-
No
data-mol-idprop. Renders insideCardfrom@molecule/app-ui-solid; a ClassMap bond must be wired.
Translations
Translation strings are provided by @molecule/app-locales-medication-row.