summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/icon.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-01-31 07:18:51 -0600
committerGitHub <[email protected]>2026-01-31 07:18:51 -0600
commita552652fcc024752fcd43d9117282307d15c44d1 (patch)
tree67631d8dd33f1b4db65ea6d2518c188faf1f066f /packages/ui/src/components/icon.tsx
parent511c7abacaebb5e007139395078b6a848e5e9ea5 (diff)
downloadopencode-a552652fcc024752fcd43d9117282307d15c44d1.tar.gz
opencode-a552652fcc024752fcd43d9117282307d15c44d1.zip
Revert "feat: Transitions, spacing, scroll fade, prompt area update (#11168)" (#11461)
Co-authored-by: adamelmore <[email protected]>
Diffstat (limited to 'packages/ui/src/components/icon.tsx')
-rw-r--r--packages/ui/src/components/icon.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/ui/src/components/icon.tsx b/packages/ui/src/components/icon.tsx
index 97488a42f..544c6abdd 100644
--- a/packages/ui/src/components/icon.tsx
+++ b/packages/ui/src/components/icon.tsx
@@ -80,16 +80,13 @@ const icons = {
export interface IconProps extends ComponentProps<"svg"> {
name: keyof typeof icons
- size?: "small" | "normal" | "medium" | "large" | number
+ size?: "small" | "normal" | "medium" | "large"
}
export function Icon(props: IconProps) {
const [local, others] = splitProps(props, ["name", "size", "class", "classList"])
return (
- <div
- data-component="icon"
- data-size={typeof local.size !== "number" ? local.size || "normal" : `size-[${local.size}px]`}
- >
+ <div data-component="icon" data-size={local.size || "normal"}>
<svg
data-slot="icon-svg"
classList={{