If you go to the github repo of the ui library:
https://github.com/umbraco/Umbraco.UI/tree/v1/contrib/packages/uui
You'll find this snippet:
<!-- Latest Version -->
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui@latest/dist/uui.min.js"></script>
<!-- Specific version -->
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/[email protected]/dist/uui.min.js"></script>
Just including this script tag, should be enough to make all the UUI components available on your razor template.
If you link directly to the cdn, you should also add a subresource integrity hash to the script tag.