Skip to content

v0.9.0

Compare
Choose a tag to compare
@pveyes pveyes released this 06 Oct 03:41
· 40 commits to master since this release
95d3e44
  • exported HtmrOptions as top-level named export
import { HtmrOptions } from 'htmr'
  • Better props type annotation for transform
const transform: HtmrOptions = {
  a: props => {
    // props is now automatically inferred
    if (props.href.startsWith('http') {
    }
  }
}
  • SVG tags support
const transform: HtmrOptions = {
  svg: props => {
    return <>{props.viewBox}</>
  }
}
  • Fixed type definition for default transform return value
  • Fixed viewBox warning when rendering svg element