I've imported Material Design library's css and js files but for some reason text field isn't working properly even though the button component below it is displayed correctly.
It looks like JS isn't getting applied at all
Codepen: https://codepen.io/x84733/pen/yEEbjK
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<style>@import url("https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css");</style>
<div class="mdc-text-field">
<input type="text" id="my-text-field" class="mdc-text-field__input">
<label class="mdc-floating-label" for="my-text-field">Hint text</label>
<div class="mdc-line-ripple"></div>
</div>
<button class="foo-button mdc-button">Button</button>
text-field component code was taken from docs:
https://material.io/develop/web/components/input-controls/text-field/