1.17.0 • Published 5 months ago

@asphalt-react/qualifier v1.17.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 months ago

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.

typerequireddefault
uniontrueN/A

iconSize

Size of the icon qualifier.

typerequireddefault
nodefalse{ width: "16", height: "16" }