Social Cards
Reusable card layouts to use in Social Feeds
Importing
First import it to your app module or any submodule as you wish
How to use
Basic social card with text content
Options
Option
Description
Types
Defaults
Activity
Use this to indicate activity that created the post. ex: 'Shared a photo'
String
null
AdditionalClasses
Pass any additional sibling classes that need to be appended with '.card'
String
null
Author
Author of the post
String
null
Body
Plain text body of the post
String
null
Comments
Comments count
String
null
Image
Image path
String
null
Likes
Likes count
String
null
Location
Location from where the post got shared
String
null
Source
Source of the post originated from a different source
String
null
Timestamp
Any pre-formatted time string
String
null
Title
To be used only with cards having Type="widget"
String
null
TitleClass
Any title formatting classes. (ex: text-success
, text-danger
)To be used only with cards having Type="widget"
String
text-complete
Type
Defines the layout of the card. Available options are widget
, text
, image
and status
String
text
Templates
Option
Description
Defaults
#CustomBody
Pass any custom HTML elements.
null
#AuthorAvatar
Pass any image that should be used as profile image.
null
Last updated