From eb1674ec50ba5e8820d65164063ba4c1d5118894 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 6 Jun 2025 11:27:29 +0200 Subject: [PATCH] [Glitch] feat: Add Storybook for component documentation, testing, and development Port f2cfa4f482ff49831b88abb0a74977aec5a9b0c1 to glitch-soc Co-authored-by: Echo Co-authored-by: Renaud Chaput Signed-off-by: Claire --- .../glitch/components/{button.tsx => button/index.tsx} | 4 ++++ 1 file changed, 4 insertions(+) rename app/javascript/flavours/glitch/components/{button.tsx => button/index.tsx} (93%) diff --git a/app/javascript/flavours/glitch/components/button.tsx b/app/javascript/flavours/glitch/components/button/index.tsx similarity index 93% rename from app/javascript/flavours/glitch/components/button.tsx rename to app/javascript/flavours/glitch/components/button/index.tsx index a527468f65..43f5901c74 100644 --- a/app/javascript/flavours/glitch/components/button.tsx +++ b/app/javascript/flavours/glitch/components/button/index.tsx @@ -22,6 +22,10 @@ interface PropsWithText extends BaseProps { type Props = PropsWithText | PropsChildren; +/** + * Primary UI component for user interaction that doesn't result in navigation. + */ + export const Button: React.FC = ({ type = 'button', onClick,