1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-26 07:46:06 -05:00

separate out inline code and code block components

This commit is contained in:
2022-04-11 19:05:01 -04:00
parent f684babb95
commit 8641b6a90e
14 changed files with 290 additions and 264 deletions

View File

@@ -1,6 +1,5 @@
import { styled } from "../../lib/styles/stitches.config";
import type { ComponentProps } from "react";
import type * as Stitches from "@stitches/react";
const RoundedIFrame = styled("iframe", {
width: "100%",
@@ -16,7 +15,6 @@ export type IFrameProps = ComponentProps<typeof RoundedIFrame> & {
width?: number; // defaults to 100%
allowScripts?: boolean;
noScroll?: boolean;
css?: Stitches.CSS;
};
const IFrame = ({ src, title, height, width, allowScripts, noScroll, css, ...rest }: IFrameProps) => (