afv-library/skills/generating-visual-diagrams/assets/lwc/dashboard-card.md
sandipkumar-yadav 37aa84df42
feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268)
* Migrating Core Salesforce Skills

* Updating pr comments

* updat reference

* Updating a skill

* Migrating Datacloud skills

* Migrating Industries cloud skills

* Validating - skills fixing

---------

Co-authored-by: Sandip Kumar Yadav <sandipkumar.yadav+sfemu@salesforce.com>
2026-05-14 19:32:15 +05:30

46 lines
930 B
Markdown

# LWC Template: Dashboard Card Mockup
## Prompt Template
```
Salesforce Lightning dashboard card/tile mockup:
CARD TYPE: [metric/chart/list/progress]
METRIC CARD:
- Large metric value
- Label below
- Trend indicator: up/down arrow with percentage
- Sparkline mini chart (optional)
- Icon in corner
CHART CARD:
- Chart type: [bar/line/pie/donut]
- Legend position
- Data labels on hover
LIST CARD:
- Title with "View All" link
- 3-5 list items
- Each item: icon, primary text, secondary text
STYLING:
- SLDS card component
- White background with subtle shadow
- Rounded corners
- Header with title and action menu
```
## Example: Metric Card
```bash
gemini "/generate 'Salesforce dashboard metric card:
- Large number: $1.2M
- Label: Total Pipeline Value
- Trend: +12% (green up arrow)
- Icon: Opportunity icon (top-right)
- Sparkline: Show 7-day trend mini chart
Style: SLDS card, white background, subtle shadow'"
```