Emoji
Description
Tesserae integrates the Emoji.css stylesheet and provides an auto-generated strongly typed enum Emoji for easy access to all available emojis. This allows you to use emojis in your UI components with compile-time safety and IntelliSense support.
Usage
You can use the Emoji enum values typically with the Icon component or wherever an emoji icon is expected.
Methods
Icon(Emoji emoji, string color = "", TextSize size = TextSize.Medium, TextWeight weight = TextWeight.Regular)
- Creates an icon component using the specified emoji.
- Parameters:
emoji: TheEmojienum value to display.color: (Optional) CSS color for the icon.size: (Optional) Size of the icon (default: Medium).weight: (Optional) Font weight (default: Regular).
- Returns: An
Iconcomponent.
Samples
Displaying Emojis
This sample shows how to display various emojis using the Icon component.
See also
- UIcons - For using UIcons instead of Emojis.