Support Single directory components

Created on 7 February 2025, about 2 months ago

Hi !

When using single directory components, I cannot render them in ui_examples. It seems thats props and slots get prefixed with # in ExampleSyntaxConverter, preventing them from being rendered properly.

I found a workaround for this, by adding this piece of (untested) code :

# ExampleSyntaxConverter.php:59

protected function convertRenderArray(array $renderable): array {
      if (in_array($property, ['props', 'slots'])) {
        continue;
      }
// ...
}

Have I missed something ? If not, I'll submit a MR with said changes.

Thanks,

Feature request
Status

Active

Version

1.0

Component

Documentation

Created by

🇫🇷France jmaxant

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024