Skip to content

Instantly share code, notes, and snippets.

View justinbhopper's full-sized avatar

Justin Hopper justinbhopper

View GitHub Profile
@justinbhopper
justinbhopper / suggest.tsx
Created March 11, 2022 22:35
Suggest enhancement
import React from "react";
import { Button } from "@blueprintjs/core";
import * as Core from "@blueprintjs/select";
export interface SuggestProps<T> extends Omit<Core.SuggestProps<T>, "onItemSelect"> {
/**
* If true, defaults the `inputProps.rightElement` to a clear button that will clear the selection.
* Ignored if `inputProps.rightElement` is provided.
* @default false
*/