Skip to content

Instantly share code, notes, and snippets.

@ix64

ix64/player.tsx Secret

Created May 29, 2022 14:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ix64/88f9f9837ec4d6a40287667e9609f643 to your computer and use it in GitHub Desktop.
Save ix64/88f9f9837ec4d6a40287667e9609f643 to your computer and use it in GitHub Desktop.
Vime Packed Icon
export default function CustomPlayer() {
return (
<Player theme="light" icons="svg">
......
<Ui>
<DefaultControls />
<IconLibrary resolver={SvgIconResolver} name="svg" />
</Ui>
</Player>
)
}
function SvgIconResolver(name: string): string {
return require(`@vime/core/icons/material/md-${name}.svg`).default.src
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment