Hi there
Im creating a custom macro (eg Pet) using Forge and Confluence Cloud,
For the code eg
const App = () => {
// Retrieve the configuration
const config = useConfig() || defaultConfig;
// Use the configuration values
return <Text>{config.name} is {config.age} years old.</Text>;
};
How do I return custom HTML code eg <div>{more html code}</div>. If I place DIV statements in the return code, then the confluence editor displays an error message.
Thanks
Lee
Hi @Lee Parvin ,
The best place to ask this is in the Atlassian Developer Community with the Forge Custom UI and UI Kit category.
However, you should note that Forge UI Kit looks like React JS, but it isn't. This means that you need to use Forge UI Kit components and can not, for instance, insert <div> elements.
For more details, you can visit the Forge developer documentation.
Regards,
Dugald
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.