v0.9.0
- 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 renderingsvg
element