diff --git a/lib/checkbox.tsx b/lib/checkbox.tsx new file mode 100644 index 0000000..81ddb32 --- /dev/null +++ b/lib/checkbox.tsx @@ -0,0 +1,20 @@ +import React from "react"; + +type CheckboxProps = { + label: string; + onChange: (value: boolean) => void; + value: boolean; +}; + +export const Checkbox: React.FC = (props) => { + return ( + + ); +}; diff --git a/lib/pages/creature-page.tsx b/lib/pages/creature-page.tsx index 8167b17..b98325a 100644 --- a/lib/pages/creature-page.tsx +++ b/lib/pages/creature-page.tsx @@ -23,6 +23,7 @@ import { svgScale, SvgTransform } from "../svg-transform"; import { ColorWidget } from "../color-widget"; import { NumericSlider } from "../numeric-slider"; import { DEFAULT_BG_COLOR } from "../colors"; +import { Checkbox } from "../checkbox"; /** Symbols that can be the "root" (i.e., main body) of a creature. */ const ROOT_SYMBOLS = SvgVocabulary.items.filter( @@ -209,14 +210,11 @@ export const CreaturePage: React.FC<{}> = () => { />
- +
{" "} - + updateCtx({ showSpecs })} + /> {ctx.uniformStrokeWidth !== undefined && ( <>