CommonFlair
@devvit/public-api v0.13.10-dev
Type Alias: CommonFlair
CommonFlair =
object
This type is used for both the link and author flairs on Post and Comment objects.
Properties
backgroundColor?
optionalbackgroundColor:string
Flair background color as a hex color string (# prefixed) or transparent
Example
"#FF4500"
cssClass?
optionalcssClass:string
Custom CSS classes from the subreddit's stylesheet to apply to the flair if rendered as HTML
richtext
richtext:
object[]
RichText object representation of the flair
elementType?
optionalelementType:string
Enum of element types. e.g. emoji or text
emojiRef?
optionalemojiRef:string
Emoji references, e.g. "🌈"
text?
optionaltext:string
Text to show up in the flair, e.g. "Need Advice"
url?
optionalurl:string
url string, e.g. "https://reddit.com/"
templateId?
optionaltemplateId:string
Flair template ID to use when rendering this flair
text?
optionaltext:string
Plain text representation of the flair
textColor?
optionaltextColor:string
One of: "light", "dark"
type?
optionaltype:string
One of: "text", "richtext"