BlurProps
Props of Blur: the material it is made of, and the children above it.
Verwendung
Overlay a now-playing caption
Dieser Typ wird verwendet von Blur
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>
);
}Typdeklaration
export type BlurProps = {
/** `regular` by default. */
material?: BlurMaterial;
/** Laid out inside it as a Box's, above the blur. */
children?: KuitoNode;
};Mitglieder 2
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
material | BlurMaterial | Nein | regular by default. |
children | KuitoNode | Nein | Laid out inside it as a Box's, above the blur. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.