Skip to content

J-Kallunki/react-reset-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-reset-html

Style-reseted HTML elements as React-components. Uses Normalize.cssinjs and other defined html-defaults. Includes typescript typings.

🔨 Usage

Give normal html-attributes as props.

import { HtmlA } from 'suomifi-ui-components';
<HtmlA href="/" />;

For aria-attributes or similar you can use object spread syntax.

const props = { 'aria-label': 'Swooosh!' };
<HtmlA {...props} href="/" />;

With Typescript to use component for wrapping all components contain Prop-postfixed interface.

import { HtmlA, HtmlAProps } from 'suomifi-ui-components';

Github Package Registry

To use this package from Github Package Registry add .npmrc to your project with:

@j-kallunki:registry=https://npm.pkg.github.com

Current collection

  • HtmlA
  • HtmlButton
  • HtmlDiv
  • HtmlH
  • HtmlInput
  • HtmlLabel
  • HtmlLi
  • HtmlNav
  • HtmlOl
  • HtmlSpan
  • HtmlUl

About

Style-reseted HTML elements as React-components

Resources

License

Stars

Watchers

Forks

Packages