@urban-ui/icon
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@urban-ui/icon

layout | icon

npm minzip size License

Wrapper around icon token size

## Getting started

pnpm add -S @urban-ui/icon
import {StitchesLogoIcon} from '@radix-ui/react-icons
import {Icon} from '@urban-ui/icon'

export function MyComponent() {
  return (
    <Icon size='md'>
      <StitchesLogoIcon width='100%' height='100%'>
    </Icon>
  )
}

Details

Urban-ui is not opinionated about iconography, use whichever icon set you like.

This Icon component is only a wrapper around the size tokens to help gain a consistent icon size across your application.

API

| Prop | Type | Description | | ---- | ------------ | ----------- | ------------------------ | | Size | 'sm' | 'md' | \ 'lg' | Maps to icon size tokens |

Package Sidebar

Install

npm i @urban-ui/icon

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

12.5 kB

Total Files

8

Last publish

Collaborators

  • mattstyles