Utilisation

Overlay a now-playing caption

Ce type est utilisé par Blur

tsx
import { Blur, Image, Text, VStack } from 'kuito';

export default function NowPlaying() {
  return (
    <VStack flex={1}>
      <Image
        src="https://example.com/cover.jpg"
        position="absolute"
        top={0}
        left={0}
        right={0}
        bottom={0}
      />
      <Blur material="thin" position="absolute" bottom={0} left={0} right={0} padding={16}>
        <Text>Now playing</Text>
      </Blur>
    </VStack>
  );
}

Déclaration du type

ts
export interface Effect {
  readonly __kuitoEffect: EffectNode;
  /** This effect and `other` at once. */
  and(other: Effect): Effect;
}

Membres 1

NomTypeRequisDescription
and(other: Effect) => EffectOuiThis effect and other at once.
and — signatures de méthode

Signatures

ts
(other: Effect): Effect

Paramètres

NomTypeRequisDescription
otherEffectOui—

Retourne

Effect

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.