@digital-realty/ix-fab
v1.1.4-alpha-228982-t51.0
Published
Webcomponent ix-fab following open-wc recommendations
Downloads
868
Keywords
Readme
<ix-fab>
This webcomponent follows the open-wc recommendation.
Installation
npm i @digital-realty/ix-fab
Usage
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>
In React
import { IxFab } from '@digital-realty/ix-fab/IxFab'
<IxFab>
<Icon>...</Icon>
</IxFab>
Linting and formatting
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
Testing with Web Test Runner
To execute a single test run:
npm run test
To run the tests in interactive watch mode run:
npm run test:watch
Demo and Documentation
Full documentation and demo are available at DLR Component Gallery.