- Home
- /
- Design
- /
- DMBComponentBuilder
- /
- SocialShare
SocialShare - Live Examples
Layout variants
SocialShareDefinition owns the content, the kind of shared media, the layout and the enabled platforms.
Custom platform set
Razor usage
@@using DMBComponentBuilder
@@Html.SocialShare(new SocialShareDefinition(
"Share this page",
"https://example.com",
SocialShareKind.Html,
SocialShareStyle.Toolbar))
@@Html.SocialShare(new SocialShareDefinition(
"Share this image",
"https://example.com/image.png",
SocialShareKind.Image,
SocialShareStyle.Toolbar).UseAllPlatforms())
Session Consent : Consent to use session for this website