Skip to content

@builder.io/sdk-svelte@4.0.9

Compare
Choose a tag to compare
@builderio-bot builderio-bot released this 04 Apr 16:00
· 11 commits to main since this release
1d2eea3

Patch Changes

  • 8d5274f: Feat: Add support for passing BlocksWrapperProps to <Blocks /> component. This allows overriding global props set via <Content /> with specific props for individual Blocks instances. Note that local props completely replace global props unless manually merged.

    Example usage:

    // Set global props, applies to all <Blocks />
    <Content blocksWrapperProps={{ style: { padding: 10 } }} />
    
    // Override global props
    <Blocks BlocksWrapperProps={{ style: { backgroundColor: 'red' } }} />
    
    // Merge global and local props
    <Blocks
      BlocksWrapperProps={{
        ...builderContext.BlocksWrapperProps,
        style: { backgroundColor: 'red' } // applies both bg color and padding
      }}
    />
  • 8d5274f: Feat: support of Variant Containers and block level personalization