Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import clsx from "clsx";
|
||||
import { ChangeEvent, FC, HTMLAttributes } from "react";
|
||||
|
||||
import styles from "./styles.module.css";
|
||||
|
||||
export interface SearchProps extends HTMLAttributes<HTMLInputElement> {
|
||||
placeholder?: string;
|
||||
value: string;
|
||||
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
||||
}
|
||||
|
||||
export const Search: FC<SearchProps> = ({
|
||||
className,
|
||||
placeholder = "Search...",
|
||||
value,
|
||||
onChange,
|
||||
...props
|
||||
}) => (
|
||||
<input
|
||||
type="search"
|
||||
className={clsx([styles.search, className])}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
placeholder={placeholder}
|
||||
spellCheck={false}
|
||||
autoComplete={"off"}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
{
|
||||
/* {showAddAmountControls ? this.renderAmountControls() : null} */
|
||||
}
|
||||
Reference in New Issue
Block a user