compact-text
compact-text
ds.compact-text is a component with title and body. You can also add child components(as seen in below example) to ds.compact-text

Example:

Input
-- ds.compact-text: Support `fastn`!

-- ds.compact-text.body:

Enjoying `fastn`? Please consider giving us a star ⭐️ on
[GitHub](https://github.com/fastn-stack/fastn) to show your support!

Using `ds.compact-text.inner` property you can add any component inside it, 
like below author-bio.

-- ds.compact-text.inner:

-- ds.author-bio: 
author: $patrica.patrica

-- end: ds.compact-text.inner

-- end: ds.compact-text
Lang:
ftd
Output

Support fastn!

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

Using ds.compact-text.inner property you can add any component inside it, like below author-bio.
Patrica Ava
Software Developer
XYZ Pvt. Ltd.

I’m a web/software developer who loves to build projects and share valuable ps for programmers on this blog.

Currently, building a new language FTD and its package manager FASTN day and night.

Properties of compact-text component

  • title - type: caption It’s used to add title to compact-text component.
  • body - type: body It’s used to add body content to compact-text component.
  • inner - type: ftd.ui list It’s used to add to child components to compact-text component.
Copyright ©2022. Fastn Inc.