const Element: LiveComponent<ElementProps>
{ grow?: number | undefined; shrink?: number | undefined; margin?: MarginLike | undefined; inline?: string | undefined; flex?: string | undefined; } &
{ width?: string | number | undefined; height?: string | number | undefined; aspect?: number | undefined; radius?: MarginLike | undefined; border?: MarginLike | undefined; stroke?: ColorLike | undefined; fill?: ColorLike | undefined; texture?: ShaderSource | null | undefined; image?: Defaulted<InputTypes<{ texture: (t?: ShaderSource | null | undefined) => ShaderSource | null | undefined; width: (t?: string | number | undefined) => Dimension | null | undefined; height: (t?: string | number | undefined) => Dimension | null | undefined; fit: (s?: string | undefined) => Fit; repeat: (s?: string | undefined) => Repeat; align: (x?: AnchorLike | undefined) => [Anchor, Anchor]; }>, Partial<InputTypes<{ texture: (t?: ShaderSource | null | undefined) => ShaderSource | null | undefined; width: (t?: string | number | undefined) => Dimension | null | undefined; height: (t?: string | number | undefined) => Dimension | null | undefined; fit: (s?: string | undefined) => Fit; repeat: (s?: string | undefined) => Repeat; align: (x?: AnchorLike | undefined) => [Anchor, Anchor]; }>>> | undefined; zIndex?: number | undefined; } &
PropsWithChildren<{ snap?: boolean, absolute?: boolean, under?: boolean }>
packages / layout / src / element / element.ts