Superficies
Divider
Separa áreas relacionadas con un límite visual discreto.
Importación
import { NeuDividerComponent } from '@neural-ui/native/divider';Ejemplos
Importa ExampleComponent en su padre y coloca <app-example /> dentro del neu-theme raíz de tu aplicación. El preview aporta el marco y las zonas seguras; utiliza la estructura raíz de Instalación en tu app.
Los detalles cuentan
Un divisor horizontal separa el total del recibo; uno vertical distingue dos columnas de datos. Ambos mantienen espacio respecto al contenido.
Ver y copiar el ejemplo completo
import { Component } from '@angular/core';
import { NeuDividerComponent } from '@neural-ui/native/divider';
import { View, Text, ScrollView } from '@ng-native/components';
@Component({
selector: 'app-example',
imports: [NeuDividerComponent, View, Text, ScrollView],
template: `
<scroll-view class="product-scroll" keyboardShouldPersistTaps="handled" [showsVerticalScrollIndicator]="true"><view class="product-stack"><view class="product-section"><text class="product-title" accessibilityRole="header">Los detalles cuentan</text><text class="product-caption">Separa grupos sin añadir ruido</text></view>
<view class="product-surface"><text class="product-heading">Recibo de la comida del equipo</text>
<view class="product-row"><view class="product-copy"><text>Menú del día × 2</text></view><text>48 €</text></view>
<text class="product-caption">Viernes · Neural Studio</text><neu-divider />
<view class="product-row"><view class="product-copy"><text class="product-heading">Total</text></view><text class="product-heading">48 €</text></view></view>
<view class="product-surface"><view class="receipt-metadata"><view class="product-copy"><text class="product-heading">Comensales</text><text class="product-caption">2</text></view><neu-divider orientation="vertical" /><view class="product-copy"><text class="product-heading">Mesa</text><text class="product-caption">04</text></view></view></view></view></scroll-view>
`,
styles: `
.actions { gap: 12px; align-items: flex-start; } text { color: var(--neu-text, #172033); font-size: 16px; }
:host { flex: 1; flex-shrink: 1; min-height: 0; }
.product-scroll { flex: 1; flex-shrink: 1; height: 0px; min-height: 0; }
.product-stack { gap: 24px; padding-bottom: 20px; }
.product-section { gap: 12px; }
.product-row { flex-direction: row; align-items: center; gap: 12px; }
.product-copy { flex: 1; min-width: 0; gap: 4px; }
.product-title { color: var(--neu-text, #172033); font-size: 24px; line-height: 30px; font-weight: 600; }
.product-heading { color: var(--neu-text, #172033); font-size: 17px; line-height: 23px; font-weight: 600; }
.product-caption { color: var(--neu-muted, #596477); font-size: 14px; line-height: 20px; }
.product-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-surface { gap: 16px; padding: 16px; border-radius: 16px; background-color: var(--neu-surface, #ffffff); border-width: 1px; border-color: var(--neu-border, #a5afbf); }
.receipt-metadata { flex-direction: row; gap: 20px; min-height: 64px; align-items: stretch; }
`,
})
export class ExampleComponent {
}Playground interactivo
Ajusta la configuración y prueba el resultado.
Capturas del dispositivo en inglés.


Referencia API
Inputs
| Nombre | Tipo | Predeterminado | Enlace | Descripción |
|---|---|---|---|---|
| orientation | "horizontal" | "vertical" | 'horizontal' | Input | Dirección del layout con los valores admitidos de la columna Tipo. |
Models
Este componente no declara models bidireccionales.
Outputs
Este componente no declara outputs públicos.