);
}
```
--------------------------------
### Parallax Component Usage Example
Source: https://21st.dev/community/components/youcefbnm/parallax
Demonstrates how to use the Parallax, ParallaxItem, and PrallaxContainer components to create a parallax effect. Customize the animation using 'start' and 'end' props on ParallaxItem. Ensure 'motion' is installed as a dependency.
```javascript
import {
Parallax,
ParallaxItem,
PrallaxContainer,
} from "@/components/ui/parallax";
import {StaggerText } from '@/components/ui/stagger-text'
import {Button } from '@/components/ui/button'
export default function DemoOne() {
return (
Defining the brand’s unique value proposition and positioning it in
the market, creating a brand identity that resonates with the target
audience.
);
}
```
--------------------------------
### Install Process Overview Component
Source: https://21st.dev/community/components/ravikatiyar162/how-we-do-it-process-overview
Use this command to install the 'How We Do It - Process Overview' component using npx.
```bash
npx shadcn@latest add https://21st.dev/r/ravikatiyar162/how-we-do-it-process-overview
```
--------------------------------
### Install Onboarding Welcome Screen
Source: https://21st.dev/community/components/ravikatiyar/onboarding-welcome-screen/default
Use this command to install the Onboarding Welcome Screen component using shadcn.
```bash
npx shadcn@latest add https://21st.dev/r/ravikatiyar162/onboarding-welcome-screen
```
--------------------------------
### Usage Example for Pricing Plans Component
Source: https://21st.dev/community/components/meschacirung/pricing/pricing-plans
This React component displays a set of pricing plans. It maps over a 'plans' array to render individual pricing cards, each with a name, price, description, features, and a 'Get Started' button.
```javascript
import { Button } from '@/components/ui/button'
import { Check } from 'lucide-react'
import Link from 'next/link'
import { Card, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'
export default function Pricing() {
const plans = [
{
name: 'Free',
price: '$0 / mo',
desc: 'Per editor',
features: ['Basic Analytics Dashboard', '5GB Cloud Storage', 'Email and Chat Support'],
buttonVariant: 'neutral'
},
{
name: 'Pro',
price: '$19 / mo',
desc: 'Per editor',
features: [
'Everything in Free Plan',
'5GB Cloud Storage',
'Email and Chat Support',
'Access to Community Forum',
'Single User Access',
'Access to Basic Templates',
'Mobile App Access',
'1 Custom Report Per Month',
'Monthly Product Updates',
'Standard Security Features'
],
buttonVariant: 'default'
},
{
name: 'Pro Plus',
price: '$49 / mo',
desc: 'Per editor',
features: ['Everything in Pro Plan', '5GB Cloud Storage', 'Email and Chat Support'],
buttonVariant: 'neutral'
}
]
return (
Pricing that scales with your business
Choose the perfect plan for your needs and start optimizing your workflow today
)
}
```
--------------------------------
### Install Welcome Component
Source: https://21st.dev/community/components/j1zuz/welcome/default
Use this command to add the Welcome component to your project using shadcn-ui.
```bash
npx shadcn@latest add https://21st.dev/r/j1zuzz/welcome
```
--------------------------------
### Badge with Bottom Start Placement
Source: https://21st.dev/community/components/hero_ui/heroui-badge/placements
Example of a badge placed at the bottom start of an element.
```html
New
```
--------------------------------
### Badge with Top Start Placement
Source: https://21st.dev/community/components/hero_ui/heroui-badge/placements
Example of a badge placed at the top start of an element.
```html
New
```
--------------------------------
### Install Welcome Component
Source: https://21st.dev/community/components/ravikatiyar/welcome/default
Use this command to add the Welcome component to your project using shadcn.
```bash
npx shadcn@latest add https://21st.dev/r/ravikatiyar162/welcome
```
--------------------------------
### Install Onboarding Checklist
Source: https://21st.dev/community/components/chowlol202/onboarding-checklist
Use this command to install the Onboarding Checklist component using npx and shadcn.
```bash
npx shadcn@latest add https://21st.dev/r/chowlol202/onboarding-checklist
```
--------------------------------
### Install Get In Touch Component
Source: https://21st.dev/community/components/itsankitverma/get-in-touch
Use this command to add the 'Get In Touch' component to your project using shadcn-ui.
```bash
npx shadcn@latest add https://21st.dev/r/itsankitverma/get-in-touch
```
--------------------------------
### Install shadcn Calendar Component
Source: https://21st.dev/community/components/shadcn/calendar-with-start-end-month
Use this command to install the shadcn Calendar component with start and end month functionality.
```bash
npx shadcn@latest add https://21st.dev/r/shadcn/calendar-with-start-end-month
```
--------------------------------
### Usage Example for Onboarding Welcome Screen
Source: https://21st.dev/community/components/ravikatiyar/onboarding-welcome-screen/default
Demonstrates how to use the WelcomeScreen component in a React application. Includes handlers for button clicks and displays the component within a styled div.
```javascript
import { WelcomeScreen } from '@/components/ui/onboarding-welcome-screen';
const WelcomeScreenDemo = () => {
// Handlers for button clicks
const handleGetStarted = () => {
alert('Get Started button clicked!');
};
const handleLogin = () => {
alert('Login link clicked!');
};
return (
Welcome To Doorin
>
}
description="Discover and book hotels effortlessly with Doorin, your personalized hotel booking app."
buttonText="Let\'s get started"
onButtonClick={handleGetStarted}
secondaryActionText={
<>
Already have an account? Login Now
>
}
onSecondaryActionClick={handleLogin}
/>
);
};
export default WelcomeScreenDemo;
```
--------------------------------
### Vertical Labels Steps Example
Source: https://21st.dev/community/components/anubra266/steps/vertical-labels
Example of using the Steps component to create a vertical list of labels. Ensure you have @ark-ui/react installed.
```jsx
"use client";
import { Steps } from "@ark-ui/react/steps";
import { Check } from "lucide-react";
export default function VerticalLabelsSteps() {
const steps = ["Step One", "Step Two", "Step Three", "Step Four"];
return (
);
}
```
--------------------------------
### Input with Start Add On Example
Source: https://21st.dev/community/components/anubra266/field-components/start-inline-add-on-input
Demonstrates how to use the Field component with a start add-on for a website URL input. Requires @ark-ui/react.
```jsx
import { Field } from "@ark-ui/react/field";
export default function InputWithStartAddOn() {
return (
Website URL
https://
);
}
```
--------------------------------
### Install Simple Animated Testimonials
Source: https://21st.dev/community/components/bankkroll/simple-animated-testimonials/simple-animated-testimonials
Use this command to install the component using shadcn.
```bash
npx shadcn@latest add https://21st.dev/r/bankkroll/simple-animated-testimonials
```
--------------------------------
### Install Button Component
Source: https://21st.dev/community/components/ravikatiyar/button/default
Install the Animated Hover Button component using npx. Ensure the path is correct for your project setup.
```bash
npx shadcn@latest add https://21st.dev/r/ravikatiyar162/button
```
--------------------------------
### Install Login & Signup Component
Source: https://21st.dev/community/components/ephraimduncan/login-signup/default
Use this command to add the Login & Signup component to your project.
```bash
npx shadcn@latest add https://21st.dev/r/ephraimduncan/login-signup
```
--------------------------------
### Usage Example for HyperText with Decryption
Source: https://21st.dev/community/components/daiwiikharihar17147/hyper-text-with-decryption
This example demonstrates how to integrate the HyperTextParagraph component into a React client component. Ensure framer-motion is installed as a dependency.
```javascript
"use client";
import HyperTextParagraph from "@/components/ui/hyper-text-with-decryption";
import { motion } from "framer-motion";
export default function DemoOne() {
const bio =
"Lorem, ipsum dolor sit amet consectetur adipisicing elit. Beatae, rerum.";
// Key words to trigger the effect
const triggers = ["ipsum", "amet", "adipisicing", "rerum"];
return (
{/* Background Ambience */}
{/* Subtle Grid */}
{/* Card Container */}
{/* Header Pill */}
Interactive Bio
{/* Main Content */}
{/* Footer */}
Hover highlighted keywords to decrypt
);
}
```
--------------------------------
### Install FAQs Component
Source: https://21st.dev/community/components/meschacirung/faqs-component
Use this command to install the FAQs Component into your project.
```bash
npx shadcn@latest add https://21st.dev/r/meschacirung/faqs-component
```
--------------------------------
### Install Welcome Modal
Source: https://21st.dev/community/components/ravikatiyar/welcome-modal/default
Use this command to add the Welcome Modal component to your project using shadcn-ui.
```bash
npx shadcn@latest add https://21st.dev/r/ravikatiyar162/welcome-modal
```
--------------------------------
### Usage Example: Input with Start Icon
Source: https://21st.dev/community/components/anubra266/field-components/start-icon-input
Demonstrates how to implement an input field with a starting icon using the Field component and Lucide React.
```jsx
import { Field } from "@ark-ui/react/field";
import { AtSign } from "lucide-react";
export default function InputWithStartIcon() {
return (
Username
);
}
```
--------------------------------
### Usage Example for Integrations Section
Source: https://21st.dev/community/components/ruixen.ui/integrations-section
Import and use the IntegrationsSection component in your React application. This example demonstrates a basic setup for rendering the component.
```javascript
import IntegrationsSection from "@/components/ui/integrations-section";
export default function DemoOne() {
return ;
}
```
--------------------------------
### Install FAQ 1 Component
Source: https://21st.dev/community/components/shadcnblockscom/faq1
Use this command to install the FAQ 1 component into your project. Ensure you have npx and shadcn-ui installed.
```bash
npx shadcn@latest add https://21st.dev/r/shadcnblockscom/faq1
```
--------------------------------
### Install FAQ Component
Source: https://21st.dev/community/components/meschacirung/faq
Use this command to add the FAQ component to your project. Ensure you have shadcn-ui installed.
```bash
npx shadcn@latest add https://21st.dev/r/meschacirung/faq
```
--------------------------------
### Navbar Component Usage Example
Source: https://21st.dev/community/components/shadcnblockscom/shadcnblocks-com-navbar1/default
This example demonstrates how to import and use the Navbar1 component with sample data. Ensure lucide-react is installed for icons.
```javascript
import { Book, Sunset, Trees, Zap } from "lucide-react";
import { Navbar1} from "@/components/blocks/shadcnblocks-com-navbar1"
const demoData = {
logo: {
url: "https://www.shadcnblocks.com",
src: "https://www.shadcnblocks.com/images/block/block-1.svg",
alt: "blocks for shadcn/ui",
title: "Shadcnblocks.com",
},
menu: [
{
title: "Home",
url: "https://www.shadcnblocks.com",
},
{
title: "Products",
url: "#",
items: [
{
title: "Blog",
description: "The latest industry news, updates, and info",
icon: ,
url: "/blog",
},
{
title: "Company",
description: "Our mission is to innovate and empower the world",
icon: ,
url: "/company",
},
{
title: "Careers",
description: "Browse job listing and discover our workspace",
icon: ,
url: "/careers",
},
{
title: "Support",
description:
"Get in touch with our support team or visit our community forums",
icon: ,
url: "/support",
},
],
},
{
title: "Resources",
url: "#",
items: [
{
title: "Help Center",
description: "Get all the answers you need right here",
icon: ,
url: "/help",
},
{
title: "Contact Us",
description: "We are here to help you with any questions you have",
icon: ,
url: "/contact",
},
{
title: "Status",
description: "Check the current status of our services and APIs",
icon: ,
url: "/status",
},
{
title: "Terms of Service",
description: "Our terms and conditions for using our services",
icon: ,
url: "/terms",
},
],
},
{
title: "Pricing",
url: "/pricing",
},
{
title: "Blog",
url: "/blog",
},
],
mobileExtraLinks: [
{ name: "Press", url: "/press" },
{ name: "Contact", url: "/contact" },
{ name: "Imprint", url: "/imprint" },
{ name: "Sitemap", url: "/sitemap" },
],
auth: {
login: { text: "Log in", url: "/login" },
signup: { text: "Sign up", url: "/signup" },
},
};
function Navbar1Demo() {
return ;
}
export { Navbar1Demo };
```
--------------------------------
### Install Hero with Product Mockup
Source: https://21st.dev/community/components/vaib215/hero-with-product-mockup/default
Use this command to add the Hero with Product Mockup component to your project.
```bash
npx shadcn@latest add https://21st.dev/r/vaib215/hero-with-product-mockup
```
--------------------------------
### Usage Example for Notification Component
Source: https://21st.dev/community/components/hari/notification
This is a client component example demonstrating how to use the Notification component in a React application. Ensure you have React and framer-motion installed.
```javascript
"use client";
import React from "react";
import Component from "@/components/ui/notification";
const DemoOne = () => {
return (
);
};
export default DemoOne;
```
--------------------------------
### Usage Example for Dynamic Wave Canvas Background
Source: https://21st.dev/community/components/minhxthanh/dynamic-wave-canvas-background
Import and render the HeroWave component in your application. This example demonstrates a basic setup for a demo file.
```typescript
// This is file with demos of your component
// Each export is one usecase for your component
import HeroWave from "@/components/ui/dynamic-wave-canvas-background";
const DemoOne = () => {
return ;
};
export { DemoOne };
```
--------------------------------
### Install Easemize Sign Up Component
Source: https://21st.dev/community/components/easemize/sign-up
Use this command to add the Easemize Sign Up component to your project using shadcn-ui.
```bash
npx shadcn@latest add https://21st.dev/r/easemize/sign-up
```
--------------------------------
### Install Faqs 1 Component
Source: https://21st.dev/community/components/efferd/faqs-1/default
Use this command to add the Faqs 1 component to your project via shadcn.
```bash
npx shadcn@latest add https://21st.dev/r/sshahaider/faqs-1
```
--------------------------------
### Usage Example for Text Rotate Component
Source: https://21st.dev/community/components/danielpetho/text-rotate/default
This example demonstrates how to integrate the Text Rotate component into a React client component. Ensure 'motion' from 'motion/react' is installed.
```javascript
"use client"
import { LayoutGroup, motion } from "motion/react"
import { TextRotate } from "@/components/ui/text-rotate"
function Preview() {
return (
Make it{" "}
)
}
export { Preview }
```
--------------------------------
### Install Animated Web3 Landing Page Component
Source: https://21st.dev/community/components/minhxthanh/animated-web3-landing-page
Use npx to add the component to your project. This command fetches and installs the necessary files.
```bash
npx shadcn@latest add https://21st.dev/r/minhxthanh/animated-web3-landing-page
```
--------------------------------
### Install Warp Dialog Component
Source: https://21st.dev/community/components/molecule-lab-rushil/warp-dialog
Use this command to install the Warp Dialog component using shadcn. This is the initial setup step for integrating the component into your project.
```bash
npx shadcn@latest add https://21st.dev/r/molecule-lab-rushil/warp-dialog
```
--------------------------------
### Highlight Combobox Usage Example
Source: https://21st.dev/community/components/anubra266/combobox/highlight-combobox
This example demonstrates how to use the Highlight Combobox component with a list of frameworks. It includes setup for filtering and highlighting search terms.
```javascript
"use client";
import { Combobox, useListCollection } from "@ark-ui/react/combobox";
import { Highlight } from "@ark-ui/react/highlight";
import { useFilter } from "@ark-ui/react/locale";
import { Portal } from "@ark-ui/react/portal";
import { ChevronDownIcon, XIcon } from "lucide-react";
export default function WithHighlightCombobox() {
const { contains } = useFilter({ sensitivity: "base" });
const { collection, filter } = useListCollection({
initialItems: ["React", "Solid", "Vue", "Svelte", "Angular", "Preact"],
filter: contains,
});
const handleInputChange = (details: Combobox.InputValueChangeDetails) => {
filter(details.inputValue);
};
return (
);
}
```
--------------------------------
### Install Sign Up Component
Source: https://21st.dev/community/components/avanishverma4/sign-up/default
Use this command to add the Sign Up component to your project using shadcn.
```bash
npx shadcn@latest add https://21st.dev/r/avanishverma4/sign-up
```
--------------------------------
### Install Onboarding Dialog
Source: https://21st.dev/community/components/patrick-xin/onboarding-dialog
Use this command to add the Onboarding Dialog component to your project.
```bash
npx shadcn@latest add https://21st.dev/r/patrick-xin/onboarding-dialog
```
--------------------------------
### Input with Inline Start and End Add-on Example
Source: https://21st.dev/community/components/originui/input/input-with-inline-start-and-end-add-on
This example shows how to use the Origin UI Input component with inline start and end add-ons. It's useful for inputs requiring currency symbols or units, such as financial fields. Ensure the necessary UI components like Label are imported.
```javascript
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { useId } from "react";
function Component() {
const id = useId();
return (
€
EUR
);
}
export { Component };
```
--------------------------------
### Install Onboarding Card Component
Source: https://21st.dev/community/components/ravikatiyar/onboarding/default
Install the OnboardingCard component using the provided npx command. This command fetches the component from the specified registry.
```bash
npx shadcn@latest add https://21st.dev/r/ravikatiyar162/onboarding
```
--------------------------------
### Usage Example for RoutePlannerCard
Source: https://21st.dev/community/components/ravikatiyar/planner-card/default
Demonstrates how to use the RoutePlannerCard component in a React application. It includes sample data for the elevation graph and an example click handler for the start button.
```typescript
import { RoutePlannerCard } from "@/components/ui/planner-card";
import { Bike } from "lucide-react";
/**
* A demo component to showcase the RoutePlannerCard.
*/
export default function RoutePlannerCardDemo() {
// Generate some random data for the elevation graph for a nice visual effect
const sampleElevationData = Array.from({ length: 50 }, () => Math.random() * 80 + 20);
const handleStart = () => {
// In a real app, this would trigger navigation or tracking.
console.log("Start button clicked!");
};
return (
,
text: "Protected bike lanes",
}}
onStart={handleStart}
/>