Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 884 Bytes

README.md

File metadata and controls

56 lines (43 loc) · 884 Bytes

📦 React Components

A collection of Untile react components to build web applications based on react.

RawHtml

Type

interface RawHtmlProps {
  children: ReactNode;
  className?: string;
  element?: string;
}

Usage

import { RawHtml } from '@untile/react-core/components/raw-html';

<RawHtml element={'div'}>
  {`foo<br>bar`}
</RawHtml>

Svg

Type

interface SvgProps {
  className?: string;
  color?: string;
  icon: string;
  size: string | unknown;
}

Usage

import { Svg } from '@untile/react-core/components/svg';
import svgIcon from './foo/bar.svg';

<Svg
  color={'red'}
  icon={svgIcon}
  size={'20px'}
/>