You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use this amazing package for the first time. So far I'm only using the default theme with the default layouts included in slidev.
However, I'm having difficulty using the layouts properly, mainly because I don't know what fields they accept in the front matter blocks.
Of course, some of it is documented at https://sli.dev/builtin/layouts.html. Maybe I missed something, but I find this page is lacking many parameters for many layouts.
For example, some layouts use image, others media or even background to specify an image file. Another example are the iframe layouts, for which I had to guess (and search github issues) that the scale parameter exists and can be used to change the effective zoom of the iframe. It accepts a float 0-1, apparently.
Is the best place to see layout usage the source code? If so, where?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to use this amazing package for the first time. So far I'm only using the default theme with the default layouts included in slidev.
However, I'm having difficulty using the layouts properly, mainly because I don't know what fields they accept in the front matter blocks.
Of course, some of it is documented at https://sli.dev/builtin/layouts.html. Maybe I missed something, but I find this page is lacking many parameters for many layouts.
For example, some layouts use
image
, othersmedia
or evenbackground
to specify an image file. Another example are the iframe layouts, for which I had to guess (and search github issues) that thescale
parameter exists and can be used to change the effective zoom of the iframe. It accepts a float 0-1, apparently.Is the best place to see layout usage the source code? If so, where?
Beta Was this translation helpful? Give feedback.
All reactions