Skip to content

Commit 6cfb30f

Browse files
docs: mention to the new transform utils for components
This allows plugin designers to more easily create plugins.
1 parent a4ed8d7 commit 6cfb30f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/plugins/component.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ And the field will be assigned at object construction and extracted from the att
4848
<MyImage source="This is the source field" description="This is the description field">
4949
```
5050

51+
There a a couple of utilities to transform types in [`#lib/core/components/utils/transform.ts`](https://github.com/Tygo-van-den-Hurk/Slyde/blob/main/lib/core/components/utils/transform.ts).
52+
5153
## Styling
5254

5355
Most of the lines of any `Component` plugin will most likely be the HTML output when rendering. That's why to make it as convenient to write your own components as possible I've added [tailwind](https://tailwindcss.com/) to the mix. You can use [tailwind](https://tailwindcss.com/) to define the looks of your component and the classes will be created for you dynamically later at runtime.

0 commit comments

Comments
 (0)