@molecule/app-address-display-solid
Feature · address-display · App (browser) · v1.1.2 · Apache-2.0
Formatted multi-line address card with edit/delete actions
npm install @molecule/app-address-display-solidHow it works
@molecule/app-address-display-solid is a ready-made address-display feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.
import { AddressDisplay } from '@molecule/app-address-display-solid'
import { EditButton } from './EditButton'
export function Contact() {
return (
<AddressDisplay
name="Jane Smith"
address={{
line1: '123 Main St',
city: 'Springfield',
state: 'IL',
postalCode: '62701',
country: 'US',
}}
phone="+1 555-867-5309"
actions={<EditButton />}
/>
)
}Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Solid formatted address display.
Exports AddressDisplay — formatted multi-line (or inline) address with
name, phone, leading icon, and action slots. Also exports the Address
type. It is the Solid counterpart of @molecule/app-address-display-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.tsJSDoc, not this file.
Quick Start
import { AddressDisplay } from '@molecule/app-address-display-solid'
import { EditButton } from './EditButton'
export function Contact() {
return (
<AddressDisplay
name="Jane Smith"
address={{
line1: '123 Main St',
city: 'Springfield',
state: 'IL',
postalCode: '62701',
country: 'US',
}}
phone="+1 555-867-5309"
actions={<EditButton />}
/>
)
}
Type
feature
Installation
npm install @molecule/app-address-display-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
Address
Structured postal address with optional individual fields.
interface Address {
/** First line — street + number. */
line1?: string
/** Second line — apartment, suite, unit. */
line2?: string
/** City. */
city?: string
/** State / province / region. */
state?: string
/** ZIP / postal code. */
postalCode?: string
/** Country. */
country?: string
}
AddressDisplayProps
Props for AddressDisplay.
interface AddressDisplayProps {
/** Address fields. */
address: Address
/** Optional name / label preceding the address. */
name?: JSX.Element
/** Optional phone number rendered under the address. */
phone?: string
/** Optional `<Icon>` / avatar leading slot. */
leading?: JSX.Element
/** Optional right-side actions. */
actions?: JSX.Element
/** Format as a single line instead of multi-line. */
inline?: boolean
/** Extra classes. */
className?: string
}
Functions
AddressDisplay(props)
Formatted multi-line address display with optional name, phone, leading
slot, and right-side actions. Set inline to render all fields on a single
line (e.g., in a table cell).
This is the Solid counterpart of @molecule/app-address-display-react:
the same props, the same ClassMap tokens, and the same DOM for the same
input.
function AddressDisplay(props: AddressDisplayProps): JSX.Element
props— Component props (seeAddressDisplayProps).
Returns: The rendered address display.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.14.0 || ^4.0.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 -
Requires a bonded ClassMap — rendering throws otherwise. No i18n or router dependency.