Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

403 B
Raw Blame
import type { Component, ComponentProps } from 'solid-js';
import { splitProps } from 'solid-js';
import { renderSVG } from 'uqr';

export const QrCode: Component<{ value: string } & ComponentProps<'div'>> = (props) => {
  const [local, rest] = splitProps(props, ['value']);

  return (
    // eslint-disable-next-line solid/no-innerhtml
    <div innerHTML={renderSVG(local.value)} {...rest} />
  );
};