← All @molecule/* packages · App templates
@molecule/app-medication-row-reactFeature · medication-row · App (browser) · v1.0.1 · Apache-2.0
Medication row — name, dosage, form, instructions, refills remaining, prescriber
npm install @molecule/app-medication-row-react@molecule/app-medication-row-react 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-react'
;<MedicationRow
name="Lisinopril"
dosage="10mg"
form="tablet"
color="#4ade80"
instructions="Take with water in the morning"
prescriber="Dr. Sarah Chen"
supplyDays={14}
refills={2}
/>Works with: @molecule/app-react, @molecule/app-ui, @molecule/app-ui-react
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.
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>. Props: name, dosage?, form?, color? (any
CSS color — renders a 24px dot), instructions?, prescriber?,
supplyDays?, refills?, actions? (Mark taken / Refill / Edit buttons),
className?. Used in medication-reminder, patient-facing health portals,
pharmacy dashboards.
import { MedicationRow } from '@molecule/app-medication-row-react'
;<MedicationRow
name="Lisinopril"
dosage="10mg"
form="tablet"
color="#4ade80"
instructions="Take with water in the morning"
prescriber="Dr. Sarah Chen"
supplyDays={14}
refills={2}
/>
feature
npm install @molecule/app-medication-row-react @molecule/app-react @molecule/app-ui @molecule/app-ui-react react
npm install -D @types/react
MedicationRowPropsProps for {@link MedicationRow}.
interface MedicationRowProps {
/** Drug name. */
name: ReactNode
/** Dosage display ("10mg", "1 tablet"). */
dosage?: ReactNode
/** Form (tablet, capsule, liquid, etc.). */
form?: ReactNode
/** Optional accent color (typically used to differentiate pill colors). */
color?: string
/** Instructions text ("Take with food"). */
instructions?: ReactNode
/** Prescriber display. */
prescriber?: ReactNode
/** Days of supply remaining. */
supplyDays?: number
/** Refills remaining. */
refills?: number
/** Right-side actions (Mark taken, Refill, Edit). */
actions?: ReactNode
/** Extra classes. */
className?: string
}
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.
function MedicationRow({
name,
dosage,
form,
color,
instructions,
prescriber,
supplyDays,
refills,
actions,
className,
}: MedicationRowProps): JSX.Element
props — Component props (see {@link MedicationRowProps}).Peer dependencies:
@molecule/app-react ^1.0.1@molecule/app-ui ^1.0.1@molecule/app-ui-react ^1.0.1react ^18.0.0 || ^19.0.0@molecule/app-react
@molecule/app-ui
@molecule/app-ui-react
react
The "Prescribed by" / "N day supply" / "N refills" labels route through
t() under the medication. prefix. The companion
@molecule/app-locales-medication-row bond currently ships only
medication.prescribedBy — medication.supplyDays and
medication.refills fall back to English until the bond gains them.
Fields you pass are rendered as-is (ReactNode) — format dosage/dates and translate free text yourself.
No data-mol-id prop. Renders inside <Card> from @molecule/app-ui-react;
a ClassMap bond must be wired.
Translation strings are provided by @molecule/app-locales-medication-row.