BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/inferencesh/youtube-embed

YouTube Embed

inferencesh/youtube-embed
FreeBlock

Responsive YouTube video embed with loading state.

Install it

npx shadcn@latest add https://ui.inference.sh/r/youtube-embed.json

Source

components/infsh/youtube-embed.tsxui.inference.sh/r/youtube-embed.json
1import { cn } from '@/lib/utils'
2import { useState } from 'react'
3
4interface YouTubeEmbedProps {
5 videoId: string
6 title?: string
7 className?: string
8}
9
10export function YouTubeEmbed({ videoId, title, className }: YouTubeEmbedProps) {
11 const [isLoading, setIsLoading] = useState(true)
12
13 return (
14 <div className={cn(
15 'flex flex-col space-y-4 w-full h-full relative rounded-xl overflow-hidden border border-border',
16 className
17 )}>
18 {isLoading && (
19 <div className="absolute inset-0 flex items-center justify-center bg-muted">
20 <div className="w-8 h-8 border-2 border-pink-400 border-t-transparent rounded-full animate-spin" />
21 </div>
22 )}
23 <iframe
24 src={`https://www.youtube.com/embed/${videoId}`}
25 title={title || 'YouTube video player'}
26 frameBorder="0"
27 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
28 referrerPolicy="strict-origin-when-cross-origin"
29 allowFullScreen
30 loading="lazy"
31 onLoad={() => setIsLoading(false)}
32 className={cn(
33 'w-full aspect-video h-full bg-transparent transition-opacity duration-300',
34 isLoading ? 'opacity-0' : 'opacity-100'
35 )}
36 />
37 </div>
38 )
39}
40

Facts

Registry
inferencesh
Type
registry:block
Access
Free
Files written
0
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

ui.inference.sh Raw registry item This item as JSON

More from inferencesh

All 14 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Agent ChatagentinferenceshBlocksFree1 dep
Chat UI PrimitiveschatinferenceshBlocksFree1 dep
Code Blockcode-blockinferenceshBlocksFreeno deps
Markdown Renderer (legacy)markdowninferenceshBlocksFree2 deps
pretext-mdpretext-mdinferenceshBlocksFree4 deps
Sidebar Lightsidebar-lightinferenceshBlocksFreeno deps
StepsstepsinferenceshBlocksFreeno deps
Table of Contentstable-of-contentsinferenceshBlocksFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex