ValyroUI Русская версия

Template Card

Template card: live thumbnail, badge, description and links. Pro · Landing pages and brand › Brand and design system

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add template-card
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { TemplateCard } from 'valyro-ui-pro';

Props

PropTypeDefault
title *ReactNodeTemplate name.
descriptionReactNodeWhat it contains, in a sentence.
badgeReactNodeTag after the title: "Pro", "New".
imageSrcstringScreenshot of the template.
imageAltstring''Text alternative of the screenshot.
previewReactNodeLive thumbnail instead of an image: real components, scaled down (see the docs demo).
actionReactNodeMain action under the text: "Get Pro", "Use template".
previewHrefstringAddress of the running demo; adds the "Live preview" link.
headingLevel1 | 2 | 3 | 4 | 5 | 63Level of the title (default 3).
labelsPartial<TemplateCardLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Type Specimen · Next: Product Card · All Landing pages and brand