Skip to content

@builder.io/[email protected]

Compare
Choose a tag to compare
@builderio-bot builderio-bot released this 11 Mar 15:34
· 12 commits to main since this release
11713dd

Minor Changes

  • de31a91: [stencil]: Improve props

    • Fix issue with props starting with on converted to "wrong" @Events - Stencil adds on automatically to events
    • Remove children prop from @Prop - Stencil uses <slot> for children
    • Add PropOptions to ToStencilOptions and StencilMetadata. You can use it like this:
    import { useMetadata } from '@builder.io/mitosis';
    
    useMetadata({
        stencil: {
            propOptions: {
                className: {
                    attribute: 'classname',
                    mutable: false,
                    reflect: false,
                },
            },
        },
    });
    
    export default function MyBasicComponent(props: {className:string}) {
        ...
    }

Patch Changes

  • d5f3eea: JSX Parser: remove standalone null expressions