Skip to content

Ngx meta.twittercard

Home > @davidlj95/ngx-meta > TwitterCard

TwitterCard interface

Twitter Cards module metadata values that can be set

Signature:

export interface TwitterCard 

Properties

Property Modifiers Type Description
[card?](./ngx-meta.twittercard.card.md) `readonly` [TwitterCardType](./ngx-meta.twittercardtype.md) \| null _(Optional)_ The card type Used with all cards Check out [TwitterCardType](./ngx-meta.twittercardtype.md) type for a list of constants you can use to specify the card's type - [Property specs](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=twitter%3Acard,)
[creator?](./ngx-meta.twittercard.creator.md) `readonly` [TwitterCardCreator](./ngx-meta.twittercardcreator.md) _(Optional)_ Username or ID of the content creator - [Property specs (username)](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=twitter%3Acreator) - [Property specs (id)](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=twitter%3Acreator%3Aid,-Twitter)
[description?](./ngx-meta.twittercard.description.md) `readonly` string \| null _(Optional)_ Description of content (maximum 200 characters) Can be set with [GlobalMetadata.description](./ngx-meta.globalmetadata.description.md) Used with `summary`, `summary_large_image`, `player` cards - [Property specs](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=n/a-,twitter%3Adescription,-Description%20of%20content)
[image?](./ngx-meta.twittercard.image.md) `readonly` [TwitterCardImage](./ngx-meta.twittercardimage.md) \| null _(Optional)_ Image for the card Can be set with [GlobalMetadata.image](./ngx-meta.globalmetadata.image.md) - [Property specs](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=og%3Atitle-,twitter%3Aimage,-URL%20of%20image)
[site?](./ngx-meta.twittercard.site.md) `readonly` [TwitterCardSite](./ngx-meta.twittercardsite.md) _(Optional)_ Username or ID of the author of the website Used with `summary`, `summary_large_image`, `app`, `player` cards - [Property specs (username)](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=twitter%3Asite,) - [Property specs (ID)](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=twitter%3Asite%3Aid,-Same%20as%20twitter)
[title?](./ngx-meta.twittercard.title.md) `readonly` string \| null _(Optional)_ Title of content (max 70 characters) Used with `summary`, `summary_large_image`, `player` cards Can be set with [GlobalMetadata.title](./ngx-meta.globalmetadata.title.md) - [Property specs](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup#:~:text=og%3Adescription-,twitter%3Atitle,-Title%20of%20content)