Device component guidelines

dont-use-device-condition: Don’t use device condition to show or hide the component

It is strongly advised to utilize the ftd.desktop and components in order to display components on desktop and mobile devices, respectively. This is because fastn performs optimization techniques, including decreasing the size of the created component tree, generating optimized code that renders quickly, and reducing the component’s dependencies.

Additionally, it handles the variant of properties, such as ftd.responsive-type and ftd.length.responsive, that are specified for the corresponding devices.
Not recommended
-- desktop-page:
if: { ftd.device == "desktop" }
-- ftd.desktop:

-- desktop-page:

-- end: ftd.desktop

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 -