Media and icons
Image tile
rounded image · seed draws generated art when there is no source
function ImageTileDemo() { return ( <View className="w-full flex-row gap-3"> <ImageTile className="flex-1" source={{ uri: 'https://picsum.photos/seed/kit1/400/300' }} caption="From a URL" /> <ImageTile className="flex-1" caption="Placeholder" /> </View> );}Usage
Rounded image with a muted placeholder while loading or when there is nothing to show.
API
<ImageTile source? ratio? caption? fallbackIcon? />Get it
Already in every copy of the native kit:
import { ImageTile } from '@/components/kit/image-tile';Details
- Exports
ImageTile- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-utils, @halftone-native/placeholder, @halftone-native/text
- Also searched as
- image, photo, thumbnail, placeholder, cover
- Registry JSON
- /r/native/image-tile.json
<div className="grid w-80 max-w-full grid-cols-2 gap-4"> <ImageTile seed="Linen overshirt" caption="Linen overshirt" /> <ImageTile caption="No image yet" /></div>Usage
Rounded image with a muted placeholder while loading or when there is nothing to show.
API
<ImageTile src? alt? ratio? caption? fallbackIcon? seed? />Get it
Already in every copy of the web kit:
import { ImageTile } from '@/components/kit/image-tile';Details
- Exports
ImageTile- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/placeholder
- Also searched as
- image, photo, thumbnail, placeholder, cover
- Registry JSON
- /r/web/image-tile.json
Agents: the whole registry is at /llms.txt.