-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
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
customize upload button style #327
Comments
Hey @Ali-Hussein-dev, it could be achieved with CSS. Do you need some examples? How do you write your styles? styled components, css modules, anything else? |
Hey @nd0ut, I use Tailwindcss I tried to add classes but it didn't work! |
Yeah, Tailwind classes won't work. But you can use theirs /* widget.module.css */
.wrapper :global(.uploadcare--widget__button) {
@apply border border-gray-300 rounded;
} import { Widget } from '@uploadcare/react-widget';
import st from './widget.module.css';
<div className={st.wrapper}>
<Widget publickey="" />
</div> |
Thanks for the example, I also miss sth which is replacing the label "upload" with an "upload " icon, which is not possible, but I am not sure about it, can I achieve that? |
To replace label with icon, you can use custom localizations. See https://uploadcare.com/docs/uploads/file-uploader/#localization There is no html escaping, so you can replace text with html/svg whatever else. In react-widget, you can pass
Sorry for the late response. |
Hi @nd0ut i faced difficulties to override widget css/style such a button and copy text. I am using
But seems methods above is not responding. Do you have any example how to override widget style and localisation using NextJS & material UI? |
Hi, I need to change the button color, I am using Nextjs and couldn't figure out how to achieve that through component props. In the docs, it is all about using Uploacare with vanilla JS.
The text was updated successfully, but these errors were encountered: