Utilização

Choose a layout for the available width.

Este tipo é usado por Show

tsx
// 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

ts
export interface ShowProps<T> extends ElementAttributes {
  when: When<T>;
  fallback?: KuitoNode;
  children?: BranchChildren<T>;
}

Membros 4

NomeTipoObrigatórioDescrição
whenWhen<T>Sim—
fallbackKuitoNodeNão—
childrenBranchChildren<T>Não—
keystring | numberNã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.