/** * Playground snippets — form controls (@africanies/africanies-ui). */ export /** * */ const FORMS_TEXT = ` // Text fields: label + optional hint/error. Bind with [(value)]. // Prefix/suffix slots use attribute selectors (prefix, suffix). import { Component, signal } from '@angular/core'; import { AfricaniesIconComponent } from '@africanies/africanies-icons'; import { TextInputComponent } from '@africanies/africanies-ui'; @Component({ selector: 'app-shipment-reference-form', standalone: true, imports: [TextInputComponent, AfricaniesIconComponent], template: \`
Stored amount: {{ amount() == null ? '—' : (amount()! | number: '1.0-6') }}
\`, }) export class ShipmentValueFormComponent { protected readonly amount = signal{{ pickup() | json }}
\`,
})
export class PickupAddressFormComponent {
protected readonly pickup = signal