Skip to content

Instantly share code, notes, and snippets.

View ibnlanre's full-sized avatar

Ridwan Olanrewaju ibnlanre

View GitHub Profile
@ibnlanre
ibnlanre / button-theme-override.ts
Created September 20, 2023 16:28
Utility to get the styles assigned to a certain size
import {
MantineTheme,
ButtonStylesParams,
ButtonStylesNames,
CSSObject,
rem,
} from "@mantine/core";
import { getButtonStyles } from "./get-button-styles";
export const Button: MantineTheme["components"]["Button"] = {
@ibnlanre
ibnlanre / component.tsx
Last active September 17, 2023 07:14
useImageOnLoad hook
import { useImageOnLoad } from "@/hooks";
import { Avatar, Skeleton } from "@mantine/core";
import NextImage from "next/image";
function Component() {
const { markers, markLoad, markError } = useImageOnLoad(
"profile",
"avatar",
"media"
);
@ibnlanre
ibnlanre / links.md
Last active September 16, 2023 14:41
sites you need to know about
@ibnlanre
ibnlanre / settings.json
Last active October 13, 2025 03:42
.vscode
{
"css.customData": [
".vscode/tailwind.v4.json"
]
}