Package Exports
- @shapla/react-delete-icon
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 (@shapla/react-delete-icon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Delete Icon
A simple circle with a cross for React
Table of contents
Installation
npm install --save @shapla/react-delete-iconUsage
Styles
with Sass:
import '@shapla/react-delete-icon/src/index.scss';with CSS:
import '@shapla/react-delete-icon/dist/delete-icon.css';Javascript Instantiation
import React from 'react';
import DeleteIcon from '@shapla/react-delete-icon';
class MyApp extends React.Component {
render() {
return (
<DeleteIcon size='small' onClick={this.handleClick}>Click Me</DeleteIcon>
);
}
handleClick(){
console.log('Button clicked!');
}
}Props
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
size |
String | no | normal |
Value can be normal or small or medium or large. |
ariaLabel |
String | no | close |
Value for html aria-label attribute |