TextContent
Text content: Text/Button labels never contain elements.
Utilisation
Cancel all app notifications.
Ce type est utilisé par Button
// Cancel all app notifications.
import { Button, notifications, storage } from 'kuito';
async function signOut() {
await notifications.cancelAll(); // no reminders for the account that left
await storage.clear();
}
<Button onPress={signOut}>Sign out</Button>;Déclaration du type
export type TextContent =
| string
| number
| boolean
| null
| undefined
| ReadonlySignal<TextContent>
| readonly TextContent[];Type
string | number | boolean | ReadonlySignal<TextContent> | readonly TextContent[]Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.