1.14.1 • Published 3 months ago
@csuclawebservices/icons v1.14.1
Icons
An npm package to use as WordPress Block Editor icon components. See the full icon component list.
Install
npm install @csuclawebservices/icons
Usage
As Icon Component
import { Icon } from '@wordpress/icons';
import { layout1 } from '@csuclawebservices/icons';
return (
<Icon icon={layout1}/>
);
As Block Icon
import { registerBlockType } from '@wordpress/blocks';
import { layout1 } from '@csuclawebservices/icons';
import metadata from './block.json';
import edit from './edit';
import save from './save';
registerBlockType( metadata.name, {
icon: layout1,
edit,
save
});
License
This project is licensed under the GPL 2.0 License - see the LICENSE file for details.
Copyright
© 2022 GoDaddy. Original build.js. © 2024 Colorado State University. All rights reserved.