Sample Screen for React Spectrum

Avatar

Avatar

ursboller

MVP

Avatar

ursboller

MVP

ursboller
MVP

21-08-2020

Does anybody have some help on how to create the following UI items within a Firefly app?

  1. Screen with tiles, similar to the Experience Cloud overview screen (as a welcome screen for my app where user can jump to other screens of the app
    ursboller_0-1598010259776.png
  2. table to display data, eg. from a data fetch or from storage, really simple table with header row and some rows with data, something like this
    ursboller_1-1598010333179.png

Thanks in advance for any hints on this topic.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

duypnguyen

Employee

Avatar

duypnguyen

Employee

duypnguyen
Employee

21-08-2020

Hi @ursboller ,

1. For app layout, you could leverage the Flex and Grid components in React Spectrum.

https://react-spectrum.adobe.com/react-spectrum/layout.html

https://react-spectrum.adobe.com/react-spectrum/Flex.html

https://react-spectrum.adobe.com/react-spectrum/Grid.html

In your case, Flex would be more suitable.

2. For table data, you could use the Table component. Currently it is in alpha release, but you are welcomed to try it out. Please let us know if you have any issue.

https://react-spectrum.adobe.com/releases/2020-08-18.html#released-packages

Sample code: https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/table/stories/Table.sto...

Answers (0)