CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-vant

tessl install tessl/npm-vant@4.9.0

Mobile UI Components library built on Vue 3 with 100+ components

Agent Success

Agent success rate when using this tile

74%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.07x

Baseline

Agent success rate without this tile

69%

task.mdevals/scenario-2/

Product Card Component

Build a mobile product card display component using a Vue 3 UI library. The component should display product information in a card format suitable for mobile e-commerce applications.

@generates

Requirements

Create a Vue 3 component that displays a product card with the following features:

  1. Product Image: Display a product thumbnail image at the top of the card
  2. Product Information: Show the product title and description text
  3. Price Display: Display the product price prominently
  4. Action Button: Include a button or footer section for user actions (e.g., "Add to Cart")

The component should accept the following data as props:

  • Product image URL
  • Product title (text)
  • Product description (text)
  • Product price (number or string)

The card should have appropriate spacing, typography, and layout optimized for mobile viewing.

Test Cases

  • Given product data with image URL, title, description, and price, the component renders all information correctly @test
  • Given a product with a long description, the card displays the description within the card boundaries @test
  • Given a product price of 99.99, the card displays the price correctly @test

Dependencies { .dependencies }

vant { .dependency }

Provides Vue 3 mobile UI components including product card display.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/vant@4.9.x
tile.json