@asphalt-react/qualifier

2.0.0-rc.4 • Public • Published

Qualifier

npm

⚠️ Designed for Asphalt React component packages. Use at your own risk, if using externally.

Returns the qualifier element. Supports text and icon as SVG. Warns if the icon is not an SVG.

Usage

import { Qualifier } from "@asphalt-react/qualifier"
import { SearchIcon } from "@asphalt-react/iconpack"

function App() {
  return (
    <Qualifier><SearchIcon /></Qualifier>
  )
}

Props

children

Qualifier to render. Accepts SVG for icon and string.

type required default
union true N/A

iconSize

Size of the icon qualifier.

type required default
node false { width: "16", height: "16" }

Readme

Keywords

Package Sidebar

Install

npm i @asphalt-react/qualifier

Weekly Downloads

106

Version

2.0.0-rc.4

License

UNLICENSED

Unpacked Size

3.28 kB

Total Files

4

Last publish

Collaborators

  • yessyprmtsr
  • elayudhanira-gojek
  • goto.abhinav
  • dawn29
  • itsjay26
  • sayantan1211