jhsu-components
v1.4.0
Published
Jeffrey Hsu's React Component Library
Readme
Jeffrey Hsu's React Component Library
Work in progress to learn about Styled Components, publishing on npm, Storybook, and to hone my component design skills. You can check out a live demo here and change component styles with all the different props available under the Knobs tab.
Current Elements
Button - Button containing text with 4 themes (primary, secondary, danger, ghost), 3 sizes (small, medium, large), and a flag to disable it.
MenuItem - <a> element containing a text label with 3 sizes (small, medium, large).
Menu - Container for MenuItem with adjustable width, border width, border color, and border styles (top, bottom, right, left, all).
Header - Simulates an <h#> tag without all the padding. You can adjust the font-size with the size prop using any size measurement (em, px, etc).
Icon - with circular or square frame and various sizes (small, thumbnail, native), mostly used for things like buttons and profile pictures.
Card - Container that uses Icon and Header to display information such as profiles. An example would be the "about the author" sections on Medium.com articles.
Accordion - A clickable header that expands to show a content <div>. It accepts a size (small, medium, large) and a title prop. Content <div> currently supports a max-height of 300em.
Dropdown - A clickable icon that reveals a menu. It accepts an image src as a prop.
