0.1.4 • Published 7 years ago

theme-loader v0.1.4

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
7 years ago

Terra Test Project

NPM version Build Status Stories in Ready

{insert description}

Getting Started

  • Install with npm: npm install terra-react-svg-loader
  • Download the latest version
  • Clone the repo: git clone https://github.com/cerner/terra-react-svg-loader.git

Documentation

Add a rule to to the webpack config:

module: {
  loaders: [
    {
      test: /\.svg$/,
      loaders: ['babel', 'terra-react-svg-loader'],
    },
  ],
},

Import svg icons as a normal react component:

import ReactDOM from 'react-dom';

import Icon from './my_icon.svg';
ReactDOM.render(<Icon/>, document.body);

Contributing

Please read through our contributing guidelines. Included are directions for issue reporting and pull requests.

LICENSE

Copyright 2016 Cerner Innovation, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago