We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codeSandBox: https://codesandbox.io/s/icon-picker-cfldkf?file=/src/App.js code: `import FontIconPicker from "@fonticonpicker/react-fonticonpicker"; import "@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.base-theme.react.css"; import "@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.material-theme.react.css"; import React, { useRef, useState } from "react";
const IconPicker = () => { const [icon, setIcon] = useState(); const fontIconPickerRef = useRef(null); const handleChange = (i) => { setIcon(i); };
const handleCustomClick = () => { if (fontIconPickerRef.current) { fontIconPickerRef.current.handleDropDown(true); } }; console.log(fontIconPickerRef); return (
export default IconPicker; `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
codeSandBox:
https://codesandbox.io/s/icon-picker-cfldkf?file=/src/App.js
code:
`import FontIconPicker from "@fonticonpicker/react-fonticonpicker";
import "@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.base-theme.react.css";
import "@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.material-theme.react.css";
import React, { useRef, useState } from "react";
const IconPicker = () => {
const [icon, setIcon] = useState();
const fontIconPickerRef = useRef(null);
const handleChange = (i) => {
setIcon(i);
};
const handleCustomClick = () => {
if (fontIconPickerRef.current) {
fontIconPickerRef.current.handleDropDown(true);
}
};
console.log(fontIconPickerRef);
return (
<FontIconPicker
icons={[
"fipicon-angle-left",
"fipicon-angle-right",
"fipicon-angle-up",
"fipicon-angle-down"
]}
ref={fontIconPickerRef}
renderFunc={(svg) => }
theme="bluegrey"
appendTo="body"
renderUsing="class"
iconsPerPage={20}
value={icon}
onChange={handleChange}
isMulti={false}
/>
);
};
export default IconPicker;
`
The text was updated successfully, but these errors were encountered: