-
-
Save ix64/88f9f9837ec4d6a40287667e9609f643 to your computer and use it in GitHub Desktop.
Vime Packed Icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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