Skip to main content

getAvailableEmoji()

可从 v4.0.187 获取

🌐 available from v4.0.187

获取可以与 <AnimatedEmoji> 一起使用的可用表情符号列表。

🌐 Gets a list of available emoji that you can use with <AnimatedEmoji>.

get-emoji.ts
import {getAvailableEmojis} from "@remotion/animated-emoji"; const emojiList = getAvailableEmojis(); console.log(emojiList);

返回值

🌐 Return value

具有以下属性的对象数组:

🌐 An array of objects with the following properties:

name

这个表情符号的名称。你可以将名称传递给 emoji 属性。

🌐 The name of the emoji. You can pass the name to the emoji prop.

categories

该表情符号所属的类别数组。

🌐 An array of categories that the emoji belongs to.

tags

表情符号所拥有的一组标签。

🌐 An array of tags that the emoji has.

durationInSeconds

表情符号的持续时间(秒)。

🌐 The duration of the emoji in seconds.

codepoint

该表情符号的 Unicode 代码点。

🌐 The Unicode codepoint of the emoji.

另请参阅

🌐 See also