Sample Screen for React Spectrum | Community
Skip to main content
Urs_Boller
Community Advisor
Community Advisor
August 21, 2020
Solved

Sample Screen for React Spectrum

  • August 21, 2020
  • 1 reply
  • 1388 views

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
  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

Thanks in advance for any hints on this topic.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by duynguyen_adobe

Hi @urs_boller ,

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.stories.tsx

1 reply

duynguyen_adobeAdobe EmployeeAccepted solution
Adobe Employee
August 21, 2020

Hi @urs_boller ,

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.stories.tsx

Urs_Boller
Community Advisor
Community Advisor
August 21, 2020
thanks a lot for all those links, will give it a try now.