ftd.iframe

ftd.iframe is a kernel element used to embed any other HTML document within your current document.

Usage

-- ftd.iframe:
src: <some url>

Attributes

ftd.iframe accepts the below mentioned attributes as well all the common attributes .

Note: For ftd.iframe, you either need to provide src or srcdoc or youtube.

src: optional string

This attribute specifies the URL of the page which needs to be embedded within your iframe element. It takes value of type string and is optional.
Sample code using src
Input
-- ftd.iframe:
src: https://www.example.com
Output

srcdoc: optional body

This attribute specifies any html content which needs to be included within your iframe element.
Sample code using srcdoc
Input
-- ftd.iframe:
border-width.px: 4
border-color: $red-yellow
padding.px: 20

<p style='color: coral;'>This text is coral.</p>
Output

youtube: optional string

This attribute will embed any youtube video in your iframe element. It takes value of type string and is optional.
Sample code using youtube
Input
-- ftd.iframe:
youtube: 10MHfy3b3c8
Output

loading: optional ftd.loading

This attribute specifies how the content inside iframe needs to be loaded. It takes value of type ftd.loading and is optional.
Sample code using loading
Input
-- ftd.iframe:
youtube: 10MHfy3b3c8
loading: lazy
Output

Support fastn!

Enjoying fastn? Please consider giving us a star ⭐️ on GitHub to show your support!

Getting Help

Have a question or need help?

Visit our GitHub Q&A discussion to get answers and subscribe to it to stay tuned.

Join our Discord channel and share your thoughts, suggestion, question etc.

Connect with our community!

Found an issue?

If you find some issue, please visit our GitHub issues to tell us about it.

Join us

We welcome you to join our Discord community today.

We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.
Copyright Β© 2023 - FifthTry.com