diff --git a/src/avatar.tsx b/src/avatar.tsx index f4064c5..a443c27 100644 --- a/src/avatar.tsx +++ b/src/avatar.tsx @@ -13,10 +13,12 @@ export type AvatarProps = { rounded?: boolean class?: string style?: JSX.CSSProperties + id?: string + ref?: any } export const Avatar: FC = (props) => { - const { src, size = 32, rounded, class: className, style, alt = "" } = props + const { src, size = 32, rounded, class: className, style, id, ref, alt = "" } = props const avatarStyle: JSX.CSSProperties = { width: `${size}px`, @@ -25,7 +27,7 @@ export const Avatar: FC = (props) => { ...style, } - return {alt} + return {alt} } export const Test = () => { diff --git a/src/box.tsx b/src/box.tsx index 68f444c..21c7560 100644 --- a/src/box.tsx +++ b/src/box.tsx @@ -9,9 +9,11 @@ type BoxProps = PropsWithChildren & { p?: number class?: string style?: JSX.CSSProperties + id?: string + ref?: any } -export const Box: FC = ({ children, bg, color, p, class: className, style }) => { +export const Box: FC = ({ children, bg, color, p, class: className, style, id, ref }) => { const boxStyle: JSX.CSSProperties = { backgroundColor: bg, color: color, @@ -19,7 +21,7 @@ export const Box: FC = ({ children, bg, color, p, class: className, st ...style, } - return
{children}
+ return
{children}
} // Common demo box colors diff --git a/src/button.tsx b/src/button.tsx index 590d046..9e7bb6a 100644 --- a/src/button.tsx +++ b/src/button.tsx @@ -12,7 +12,7 @@ export type ButtonProps = JSX.IntrinsicElements["button"] & { } export const Button: FC = (props) => { - const { variant = "primary", size = "md", style, class: className, ...buttonProps } = props + const { variant = "primary", size = "md", style, class: className, id, ref, ...buttonProps } = props const baseStyles: JSX.CSSProperties = { display: "inline-flex", @@ -75,7 +75,7 @@ export const Button: FC = (props) => { ...(style as JSX.CSSProperties), } - return