# InfoRow

> Molecule — orn-ui

> ⚠️ Requiere <UIProvider>: Este componente (como todos los de orn-ui) debe renderizarse dentro de un ancestro <UIProvider>, o lanza un error en runtime. See https://orn-ui-docs.vercel.app/getting-started.md

> Corre en Expo SDK 54, 55, 56 y 57, y en React Native puro >=0.81 con react >=19.1. Sin módulos nativos — funciona en Expo Go, sin prebuild.

## Instalación

Instala solo este componente (copia el código fuente a tu proyecto, sin dependencia npm)
```bash
npx orn-ui add info-row
```

O instala el paquete completo e impórtalo
```tsx
pnpm add orn-ui
import { InfoRow } from 'orn-ui/info-row';
```

Depende de: core (theme + icons), avatar

## Variantes

### With value

```tsx
<InfoRow icon="info" label="Email" value="jane@example.com" placeholder="No email" />
```

### Missing value

```tsx
<InfoRow icon="info" label="Phone" value={undefined} placeholder="No phone number" />
```

### Different icon

```tsx
<InfoRow icon="check" label="Status" value="Verified" placeholder="Unverified" />
```

## Código completo del demo

```tsx
const variants: VariantDef[] = [
  { label: 'With value', content: <InfoRow icon="info" label="Email" value="jane@example.com" placeholder="No email" /> },
  { label: 'Missing value', content: <InfoRow icon="info" label="Phone" value={undefined} placeholder="No phone number" /> },
  { label: 'Different icon', content: <InfoRow icon="check" label="Status" value="Verified" placeholder="Unverified" /> },
];
return <VariantList variants={variants} />;
```

## Props

| Nombre | Tipo | Por defecto | Descripción |
|---|---|---|---|
| `icon` | `IconName` | — | — |
| `label` | `string` | — | — |
| `value` | `string` | — | — |
| `placeholder` | `string` | — | — |
| `style?` | `StyleProp<ViewStyle>` | — | — |
