Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Apr 15:22
  • #6 Fix em units regression
  • Improve handling of custom components
    • Allow styling to be applied directly to custom component
    • Support drawing of css border and background around/behind the custom component
  • Rework the layout of the example (main.cpp)
  • Refactor naming conventions

Example

image

Custom Components

<!-- before: Had to wrap with div -->
<div style="border: 1px solid green; height: 100px; width: 100px; padding: 15px; flex-shrink: 0"
    <custom-button
        text="Click me"
        tooltip="Tooltip"
    ></custom-button>
</div>

<!-- after: Style works directly on the component -->
<custom-button
    style="border: 1px solid green; height: 100px; width: 100px; padding: 15px; flex-shrink: 0"
    text="Click me"
    tooltip="Tooltip"
></custom-button>