ShowProps
Props of Show: the condition, and what it shows either way.
Utilisation
Choose a layout for the available width.
Ce type est utilisé par Show
// Choose a layout for the available width.
import { Show, Text, window } from 'kuito';
window.widthClass.value; // 'compact', 'medium' or 'expanded'
<Show when={window.widthClass.value === 'expanded'}>
<Text>Two panes</Text>
</Show>;Déclaration du type
export interface ShowProps<T> extends ElementAttributes {
when: When<T>;
fallback?: KuitoNode;
children?: BranchChildren<T>;
}Membres 4
| Nom | Type | Requis | Description |
|---|---|---|---|
when | When<T> | Oui | — |
fallback | KuitoNode | Non | — |
children | BranchChildren<T> | Non | — |
key | string | number | Non | — |
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.