rmdi
1.0.0
Built with Pixo, Styled Components, and Styled System
https://jxnblk.com/rmdi
npm i rmdi// import icons individually for better tree-shaking
import Accessibility from 'rmdi/lib/Accessibility'
const App = props => (
<Accessibility
size={32}
color='tomato'
/>
)// import all icons as a single component
import { Icon } from 'rmdi'
const App = props => (
<Icon
name='accessibility'
size={32}
color='tomato'
/>
)See the icon list for a complete list of all icons available
| Prop | Type | Description |
|---|---|---|
size |
number | width and height in pixels |
color |
string | fill color, uses Styled System's color function |
Margin can be applied with the following props, which use Styled System's space function.
Margin props accept numbers for pixel values, strings with CSS units, or arrays for responsive margin
| Prop | Description |
|---|---|
m |
margin |
mt |
margin-top |
mr |
margin-right |
mb |
margin-bottom |
ml |
margin-left |
mx |
margin-left and margin-right |
my |
margin-top and margin-bottom |
npm installThe build process will:
material-design-icons package for SVG source codesvg/ folderexamples/ folder for tests and developmentsvg/ folder and output to src/src/ folder and output to lib/Tests:
npm testTo run the development server:
npm startMIT License