ShowProps
Props of Show: the condition, and what it shows either way.
Utilização
Choose a layout for the available width.
Este tipo é usado por 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>;Declaração do tipo
export interface ShowProps<T> extends ElementAttributes {
when: When<T>;
fallback?: KuitoNode;
children?: BranchChildren<T>;
}Membros 4
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
when | When<T> | Sim | — |
fallback | KuitoNode | Não | — |
children | BranchChildren<T> | Não | — |
key | string | number | Não | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.