Author: smartcoder

Mantine UI – Search Box for React App Code

Search Box made with mantine ui code, Search Box and Share Button <Group> <Input icon={<IconSearch size={16} />} variant="filled" placeholder="Search responses" radius="xl" size="sm" styles={(theme) =>... Read more »

Mantine UI – Loader in Page Center

Loading icon in Mantine ui with react js const loaderStyle: React.CSSProperties = { position: 'fixed' as 'fixed', left: '50%', top: '50%', transform: 'translate(-50%, -50%)',... Read more »

React JS – Mantine UI – Error notification Code with Icon

Display error notifications with icon, title, and error message in your React JS App using Mantine ui notifications. Sample Mantine UI error notification code... Read more »

Mantine UI – React – Success Notification

Mantine Ui notification with success check mark import { IconCheck } from "@tabler/icons-react"; import { notifications } from "@mantine/notifications"; notifications.show({ id: 'load-data', color: 'teal',... Read more »

Mantine UI – onBlur, onChange not working TextInput, Input – Solution

Fix or solution for not working of onBlur and onChange in Mantine UI forms. How to trigger onBlur, onChange in mantine UI for field... Read more »

Mantine UI – Using theme colors

How to use theme colors in mantine UI for styling in css, custom styles borderColor: theme.colors.yellow[6], Full Example import { createStyles } from '@mantine/core';... Read more »

Customize Input Box , Text Input in Mantine UI

How to add custom css style for input box , texfields in mantine UI. Mantine UI text box css customize, change the border color,... Read more »

Use Tanstack React Query for Local State Management

Use react query for state management. Sharing data across components. Example Use cases import { useQuery } from 'react-query'; const MyComponent = () =>... Read more »

Supabase Auth: Get Currently logged user id

Get the user id of current active user in supabase. Supabase auth logged user's id get. Supabase next js code to get current logged... Read more »

How to Import Images in React

How to import an image in React JS project. Using an image in React App code. Read more »