Package Exports
- coreui-icons-next
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coreui-icons-next) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@coreui/icons-react for CoreUI for React
docs:
https://coreui.io/react/docs/components/-Icon
install:
npm install @coreui/icons
npm install @coreui/icons-react
import:
import { CIcon } from '@coreui/icons-react';
import { cifAU } from '@coreui/icons';
or:
@import '~@coreui/icons/css/all.css';
usage:
...
class CoreUIIcons extends Component {
...
render() {
return (
<CIcon name="cil-list" size="2xl"/>
)
}
...
- bootstrapped with nwb toolkit
npm run
scripts
package.json
is configured with "scripts"
we can use with npm run
while developing the project.
Command | Description |
---|---|
npm run build |
prepare for publishing to npm |
npm run clean |
delete built resources |
npm test |
run tests |
npm run test:coverage |
run tests and produce a code coverage report in coverage/ |
npm run test:watch |
n/a |
npm start |
n/a |