This webcomponent follows the open-wc recommendation.
npm i @digital-realty/ix-fab
An IxFab expects an icon in it's slot element to render the component correctly.
The icon can be from any icon library, an image or an svg.
<script type="module">
import '@digital-realty/ix-fab';
</script>
<ix-fab>
<md-icon>...</md-icon>
</ix-fab>
import { IxFab } from '@digital-realty/ix-fab/IxFab'
<IxFab>
<Icon>...</Icon>
</IxFab>
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
To execute a single test run:
npm run test
To run the tests in interactive watch mode run:
npm run test:watch
Full documentation and demo are available at DLR Component Gallery.