styled-sanitize.css

1.0.1 • Public • Published

styled-sanitize

Sanitize.css for styled-components


Installation:

npm install styled-sanitize.css

or

yarn add styled-sanitize.css

Usage:

import React from "react";
import Sanitize from "styled-sanitize.css";

const App = () => (
  <>
    <Sanitize />
    <h1>Hello world</h1>
  </>
);

You can also use the named export to customize:

import React from 'react';
import { createGlobalStyle } from 'styled-components';
import { sanitize } from 'styled-sanitize.css';

const GlobalStyle = createGlobalStyle`
  ${sanitize}
  /* more styles */
`

const App = () => (
  <>
    <GlobalStyle />
    <h1>Hello world</h1>
  </>
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    20
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    20
  • 1.0.0
    0

Package Sidebar

Install

npm i styled-sanitize.css

Weekly Downloads

17

Version

1.0.1

License

MIT

Unpacked Size

12.7 kB

Total Files

6

Last publish

Collaborators

  • tylerwolff