diff --git a/app/soapbox/components/ui/avatar/avatar.tsx b/app/soapbox/components/ui/avatar/avatar.tsx index a327e6840..6818509e8 100644 --- a/app/soapbox/components/ui/avatar/avatar.tsx +++ b/app/soapbox/components/ui/avatar/avatar.tsx @@ -6,11 +6,15 @@ import StillImage from 'soapbox/components/still_image'; const AVATAR_SIZE = 42; interface IAvatar { + /** URL to the avatar image. */ src: string, + /** Width and height of the avatar in pixels. */ size?: number, + /** Extra class names for the div surrounding the avatar image. */ className?: string, } +/** Round profile avatar for accounts. */ const Avatar = (props: IAvatar) => { const { src, size = AVATAR_SIZE, className } = props; diff --git a/app/soapbox/components/ui/button/button.tsx b/app/soapbox/components/ui/button/button.tsx index c88d228f5..f98535166 100644 --- a/app/soapbox/components/ui/button/button.tsx +++ b/app/soapbox/components/ui/button/button.tsx @@ -8,20 +8,33 @@ import { useButtonStyles } from './useButtonStyles'; import type { ButtonSizes, ButtonThemes } from './useButtonStyles'; interface IButton { + /** Whether this button expands the width of its container. */ block?: boolean, + /** Elements inside the