Skip to content

Instantly share code, notes, and snippets.

View ComicDansMS's full-sized avatar

Daniel Holmes ComicDansMS

  • Frame Creative
  • Adelaide, Australia
View GitHub Profile
@ComicDansMS
ComicDansMS / ColourPickerWithHex.jsx
Created December 31, 2023 00:36
Shopify Polaris colour picker with using HEX, including text input and swatch
import {
ColorPicker,
hsbToHex,
hexToRgb,
rgbToHsb,
InlineStack,
BlockStack,
TextField
} from "@shopify/polaris";
import { useCallback, useEffect, useState } from "react";