feat: Add Image Cropper to ui & storybook (#607)

* feat: add image cropper

* installation

* chore: add max width for dialogue container

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
Adeyemi Adetunji
2025-12-04 01:51:58 +01:00
committed by GitHub
co-authored by Rotimi Best
parent 9a5aee1ee0
commit ce216b1ade
19 changed files with 681 additions and 1 deletions
@@ -0,0 +1,14 @@
<script lang="ts">
import { cn } from '../../tools';
import type { ImageCropperControlsProps } from './types';
let { ref = $bindable(null), class: className, children, ...rest }: ImageCropperControlsProps = $props();
</script>
<div
{...rest}
bind:this={ref}
class={cn('ui:flex ui:w-full ui:place-items-center ui:justify-center ui:gap-2', className)}
>
{@render children?.()}
</div>