0.0.12 • Published 7 months ago

tdesign-icons-omi v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

tdesign-icons-omi

Cross framework icon collection based on tdesign design architecture and omi.

Description

tdesign-icons-omi is a collection of icons specifically designed for the Omi framework. It provides a wide range of high-quality icons that can be easily integrated into your Omi projects.

Installation

npm install tdesign-icons-omi

Usage

import { render, signal, tag, Component, h } from 'omi'

import 'tdesign-icons-omi/add-rectangle'
import 'tdesign-icons-omi/minus-rectangle'

const count = signal(0)

function add() {
  count.value++
}

function sub() {
  count.value--
}

@tag('counter-demo')
class CounterDemo extends Component {
  static css = 'span { color: red; }'

  render() {
    return (
      <>
        <t-icon-minus-rectangle onClick={sub} />
        <span>{count.value}</span>
        <t-icon-add-rectangle onClick={add} />
      </>
    )
  }
}

render(<counter-demo />, document.body)

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

License

MIT

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago

0.0.0

7 months ago