<div id="error-page-example-container" style="position: relative; height: 500px;"></div>
hx.select('#error-page-example-container').append(hx.errorPage({
title: '404',
message: 'The content you requested was not found',
buttons: [
{
text: 'Back',
onClick: () => window.history.back(),
},
{
text: 'Home',
url: '/',
buttonType: 'primary',
},
],
}));
'primary'
or 'secondary'
.
url
<button>
element <a>
element \n
) will be split into paragraphs.