feat(react/ribbon): finalize port of inherited attributes tab

This commit is contained in:
Elian Doran
2025-08-23 22:18:04 +03:00
parent 17cd2128fd
commit 652114c7b5
4 changed files with 39 additions and 57 deletions

View File

@@ -6,6 +6,7 @@ interface RawHtmlProps {
className?: string;
html?: HTMLElementLike;
style?: CSSProperties;
onClick?: (e: MouseEvent) => void;
}
export default function RawHtml(props: RawHtmlProps) {
@@ -16,11 +17,12 @@ export function RawHtmlBlock(props: RawHtmlProps) {
return <div {...getProps(props)} />
}
function getProps({ className, html, style }: RawHtmlProps) {
function getProps({ className, html, style, onClick }: RawHtmlProps) {
return {
className: className,
dangerouslySetInnerHTML: getHtml(html ?? ""),
style
style,
onClick
}
}