KBAISE/ for lovable
Library
Docs

Use 21st.dev components in Lovable

about 3 minFirst appchecked 6d agoOfficial page
The short version

You can copy pre-made visual sections directly from 21st.dev and paste them into your Lovable chat. Lovable builds the piece into your app and matches your existing design.

Anyone who wants polished website sections like navigation bars or hero blocks without designing them from scratch.

Do this, in order

  1. 1

    Browse 21st.dev and select a component you want to use in your app.

    It lets you pick from ready-made designs like hero sections, testimonial blocks, and menus.

  2. 2

    Open the component page and copy its prompt with Lovable selected as the target tool.

    This generates instructions specifically formatted for Lovable to build the design.

  3. 3

    Paste the copied content into your Lovable project chat and add a line specifying where it belongs, such as on the homepage.

    Lovable needs clear instructions on which page and position to place the new section.

  4. 4

    Send the chat message and allow Lovable to add the component to your app.

    Lovable writes the necessary code and applies your project's current styling.

Paste this into your project

Add this as the hero section on the homepage.

Words decoded

Component
A standalone building block of a web page, such as a navigation bar, contact form, or pricing card.
Hero section
The large banner area right at the top of a webpage, usually featuring a main headline and call to action.

Where people get stuck

  • Pasting the component prompt without telling Lovable where to place it in your app.
  • Hitting the daily copy limit on 21st.dev if you are using their free tier.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.