BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/skyroc-ui/alert

Alert

skyroc-ui/alert
FreeBlock

skyroc-ui publishes no description for this item.

Install it

npx shadcn@latest add https://ui-play.skyroc.me/r/alert.json

Source

src/components/alert/Alert.tsxui-play.skyroc.me/r/alert.json
1'use client';
2
3import { forwardRef } from 'react';
4import { useComponentConfig } from '../config-provider/context';
5import AlertUI from './AlertUI';
6import type { AlertProps } from './types';
7
8const Alert = forwardRef<HTMLDivElement, AlertProps>((props, ref) => {
9 const config = useComponentConfig('alert');
10
11 const mergedProps = {
12 ...config,
13 ...props
14 };
15
16 return (
17 <AlertUI
18 {...mergedProps}
19 ref={ref}
20 />
21 );
22});
23
24Alert.displayName = 'Alert';
25
26export default Alert;

What it pulls in

npm packages

  • @radix-ui/react-slot

Other registry items

  • https://ui-play.skyroc.me/r/style.json

Files it writes

  • src/components/alert/Alert.tsx
  • src/components/alert/AlertDescription.tsx
  • src/components/alert/AlertRoot.tsx
  • src/components/alert/AlertTitle.tsx
  • src/components/alert/AlertUI.tsx
  • src/components/alert/AlertWrapper.tsx
  • src/components/alert/alert-variants.ts
  • src/components/alert/index.ts
  • src/components/alert/types.ts

Facts

Registry
skyroc-ui
Type
registry:block
Access
Free
Files written
9
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
today

Go to the source

ui-play.skyroc.me Ohh-889/skyroc-ui on GitHub Raw registry item This item as JSON

More from skyroc-ui

All 58 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionskyroc-uiBlocksFree2 deps · 10 files
Alert Dialogalert-dialogskyroc-uiBlocksFree2 deps · 13 files
Arrowarrowskyroc-uiBlocksFreeno deps
Aspect Ratioaspect-ratioskyroc-uiBlocksFree1 dep · 4 files
Avataravatarskyroc-uiBlocksFree1 dep · 8 files
Badgebadgeskyroc-uiBlocksFreeno deps · 7 files
Bottom Sheetbottom-sheetskyroc-uiBlocksFreeno deps · 12 files
Breadcrumbbreadcrumbskyroc-uiBlocksFree1 dep · 12 files
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex