feat(ui): Select, dropdown, popover styles & transitions (#11675)

This commit is contained in:
Aaron Iker
2026-02-02 01:17:14 +01:00
committed by GitHub
parent b39c1f158f
commit 377bf7ff21
19 changed files with 631 additions and 165 deletions

View File

@@ -80,13 +80,13 @@ const icons = {
export interface IconProps extends ComponentProps<"svg"> {
name: keyof typeof icons
size?: "small" | "normal" | "medium" | "large"
size?: "small" | "normal" | "medium" | "large" | number
}
export function Icon(props: IconProps) {
const [local, others] = splitProps(props, ["name", "size", "class", "classList"])
return (
<div data-component="icon" data-size={local.size || "normal"}>
<div data-component="icon" data-size={typeof local.size !== 'number' ? local.size || "normal" : `size-[${local.size}px]`}>
<svg
data-slot="icon-svg"
classList={{