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

0.1.0 • Public • Published

@urban-ui/button-extras

control | button-extras

npm minzip size License

Additional button examples. These extend the default button package to cover more use-cases. They can be used as examples of extending the button package or as standalone button types.

## Getting started

pnpm add -S @urban-ui/button-addons

Work button

import {ReloadIcon} from '@radix-ui/react-icons'
import {Box} from '@urban-ui/box
import {WorkButton} from '@urban-ui/button-extras'

export function MyComponent() {
  return (
    <WorkButton
      isWorking={true}
      icon={<Box size={15}><ReloadIcon /></Box>}
      onClick={() => {}}
    >
      Working
    </LoadiWorkButtonngButton>
  )
}
Prop Type Description
isWorking boolean Controls whether the icon is visible
icon React.ReactNode icon to render
...props Button props Urban-ui button props

Package Sidebar

Install

npm i @urban-ui/button-extras

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

16.2 kB

Total Files

10

Last publish

Collaborators

  • mattstyles