npm.io
1.25.0 • Published 8 months ago

@csuclawebservices/icons

Licence
GPL-2.0-or-later
Version
1.25.0
Deps
1
Size
207 kB
Vulns
0
Weekly
0

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.

2022 GoDaddy. Original build.js. 2024 Colorado State University. All rights reserved.

Keywords