With Icon
- Contact Name:
- Lei Chan
- Account Name:
- Salesforce
With Avatar
- Name:
- John Doe
- Title:
- Senior Developer
Task
Follow up on '15 contact
Task • Lei Chan - VP of Sales
Article
How to Use the Lightning Design System
Article • Published by Salesforce UX
Article with Like Bar
Lightning Design System Best Practices
Article • Published by Salesforce UX
Board
Dashboard • Created by Sales Team
Last updated 2 hours ago
Interactive Controls
Component API
Basic Tile Structure
<div class="slds-tile slds-media"> <div class="slds-media__figure"> <span class="slds-icon_container slds-icon-standard-account" title="Account"> <svg class="slds-icon slds-icon_medium" aria-hidden="true"> <use href="#standard-account"></use> </svg> <span class="slds-assistive-text">Account</span> </span> </div> <div class="slds-media__body"> <div class="slds-tile__detail"> <dl class="slds-list_horizontal slds-wrap"> <dt class="slds-item_label slds-text-color_weak slds-truncate" title="Name">Name:</dt> <dd class="slds-item_detail slds-truncate" title="Salesforce UX">Salesforce UX</dd> </dl> </div> </div></div>
Styling Hooks Overview
The tile component supports various styling hooks for customization. Key classes include:
slds-tile
- Main tile containerslds-tile__detail
- Content areaslds-tile__detail-action
- Action areaslds-media__figure
- Icon/avatar containerslds-media__body
- Main content body
CDN
This page uses the Salesforce Lightning Design System via: https://cdnjs.cloudflare.com/ajax/libs/design-system/2.27.2/styles/salesforce-lightning-design-system.min.css