Media and icons
Aspect ratio
function AspectRatioDemo() { return ( <AspectRatio ratio={16 / 9} className="bg-muted w-full items-center justify-center overflow-hidden rounded-md"> <Text className="text-muted-foreground text-sm">16 : 9</Text> </AspectRatio> );}API
<AspectRatio ratio={16 / 9}>…</AspectRatio>Get it
Already in every copy of the native kit:
import { AspectRatio } from '@/components/ui/aspect-ratio';Details
- Exports
AspectRatio- Also searched as
- image, thumbnail, 16:9
- Upstream
- Unchanged from react-native-reusables; installs from their registry.
<div className="w-80 max-w-full"> <AspectRatio ratio={16 / 9} className="overflow-hidden rounded-lg"> <Placeholder seed="Product walkthrough" ratio={16 / 9} icon={PlayIcon} className="h-full" /> </AspectRatio></div>API
<AspectRatio ratio={16 / 9}>…</AspectRatio>Get it
Already in every copy of the web kit:
import { AspectRatio } from '@/components/ui/aspect-ratio';Details
- Exports
AspectRatio- Also searched as
- image, thumbnail, 16:9, video
- Upstream
- Unchanged from shadcn/ui; installs from their registry.
Agents: the whole registry is at /llms.txt.