initial commit
Some checks failed
CodeQL / Analyze (push) Failing after 1m32s

This commit is contained in:
Ludwig Lehnert
2026-01-11 11:08:48 +01:00
commit 0efd3d954b
58 changed files with 19390 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { JSX, JSXElement } from 'solid-js';
import { COLORS } from 'src/colors';
type SSCalloutProps = JSX.HTMLAttributes<HTMLDivElement> & {
color: (typeof COLORS)[number];
icon: JSXElement;
};
function SSCallout(props: SSCalloutProps) {
const { icon, color, class: className, style, children, ...rest } = props;
return (
<div
{...rest}
class={`ss_callout ss_callout--${color} ${className ?? ''}`}
style={style}
>
<span class="ss_callout__icon">
{icon}
</span>
<div class="ss_callout__content">
<span>{children}</span>
</div>
</div>
);
}
export { SSCallout };