1.4.0 • Published 6 years ago

jhsu-components v1.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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 - \ 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 \. It accepts a size (small, medium, large) and a title prop. Content \ currently supports a max-height of 300em.

Dropdown - A clickable icon that reveals a menu. It accepts an image src as a prop.

1.4.0

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.1

6 years ago

1.2.1

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago