Media and icons
Placeholder
deterministic abstract SVG art from a seed · the kit ships no raster imagery
function PlaceholderDemo() { const [round, setRound] = React.useState(0); const seeds = ['arc lamp', 'headphones', 'tote bag', 'planter'].map((s) => `${s}-${round}`); return ( <View className="w-full gap-3"> <View className="flex-row gap-3"> {seeds.slice(0, 3).map((seed) => ( <View key={seed} className="flex-1"> <Placeholder seed={seed} /> </View> ))} </View> <View className="flex-row gap-3"> <View className="flex-1"> <Placeholder seed={seeds[3]} ratio={16 / 9} palette="mono" /> </View> <View className="flex-1"> <Placeholder seed={seeds[0]} ratio={16 / 9} palette="primary" /> </View> </View> <View className="flex-row items-center gap-3"> <Button size="sm" variant="outline" onPress={() => setRound((r) => r + 1)}> <Text>New seeds</Text> </Button> <Text className="text-muted-foreground flex-1 text-sm">The same seed always draws the same art.</Text> </View> </View> );}Usage
Stand-in imagery that never 404s. Drawn from theme colours, so it follows light/dark and re-brands with the tokens — use it instead of shipping placeholder files.
API
<Placeholder seed ratio? palette="chart|mono|primary" icon? />Get it
Already in every copy of the native kit:
import { Placeholder } from '@/components/kit/placeholder';Details
- Exports
Placeholder- Packages
- lucide-react-native@^1.21.0, react-native-svg@15.15.4
- Installs with
- @halftone-native/icon, @halftone-native/lib-palette-context, @halftone-native/lib-utils
- Also searched as
- generated art, stand-in image, seeded, mock image, abstract
- Registry JSON
- /r/native/placeholder.json
<div className="grid w-72 max-w-full grid-cols-3 gap-3"> <Placeholder seed="Ada" /> <Placeholder seed="Ada" palette="mono" /> <Placeholder seed="Ada" palette="primary" /> <Placeholder seed="Northwind" /> <Placeholder seed="Lumen Labs" /> <Placeholder seed="Acme Studio" icon={ImageIcon} /></div>Usage
Stand-in imagery that never 404s. Drawn from theme colours, so it follows light/dark and re-brands. The same seed draws the same art in both kits.
API
<Placeholder seed ratio? palette="chart|mono|primary" icon? />Get it
Already in every copy of the web kit:
import { Placeholder } from '@/components/kit/placeholder';Details
- Exports
Placeholder- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Also searched as
- generated art, stand-in image, seeded, mock image, abstract
- Registry JSON
- /r/web/placeholder.json
Agents: the whole registry is at /llms.txt.