1.9.0 • Published 2 months ago

@bodynarf/react.components v1.9.0

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

About

Small library with react components based on Bulma CSS framework 

Installation

  1. Install React
  2. Install Bulma
  3. Make sure you imported bulma styles in parent container
  4. (Optional) To use Icon component - install Bootstrap Icons and make sure you imported these styles in parent container
  5. (Optional) To use Checkbox component - install bulma-checkradio and make sure you imported these styles in parent container

Demo

Demo of using all components can be found on https://bodynar.github.io/bodynarf.react-components/ (or open latest build in github repository)

Description

Mostly all components have root css class with bbr- prefix. BBR - Bodynarf Bulma React

Simple components

Simple react components based on html elements.

Controls

  • Checkbox - (see p.5 of installation) Checkbox component based on bulma-checkradio
  • ColorPicker - control that allows picking color (with preview option)
  • Date - date input
  • Multiline - multiline text input
  • Number - number input with step
  • Password - single line password input (requires icon, see icon component description)
  • Text - single line text input;

Components

  • Anchor - simple anchor (link) component
  • Button - button that allows user to interact with system by clicking it (assume everyone knows what is button)
  • Icon - see p.4 of installation
  • Tag - small component stands for tag visualization
  • BreadCrumbs - speaks for it self
  • Table - table with sortable headers

Complex components

Complex components is set of components built via combining simple components or represent complex logical component

  • Accordion - Collapsible container that can hide some content inside
  • Dropdown - custom dropdown component, based on html div elements & css (requires icon, see icon component description)
  • Paginator - Pagination elements to navigate through paged list

    	Example:
    	```tsx
    		const [{ currentPage, pagesCount, onPageChange }, paginate] = usePagination(items.length, ITEMS_PER_PAGE);
    		const pageItems = useMemo(() => paginate(items), [paginate, items]);
    
    		// ...
    
    		<Paginator
    			count={pagesCount}
    			currentPage={currentPage}
    			onPageChange={onPageChange}
    		/>
    	```
  • Search - Search bar with optional button to perform search

  • Tabs - Container for multi-content with option of switching displaying content without refreshing\scrolling page

Hooks

  • useComponentOutsideClick - Attach watcher for mouse clicks and emit event when click was outside of component
  • usePagination - Create a pagination config to easily manipulate with Paginator component
1.9.0

2 months ago

1.8.2

11 months ago

1.8.1

11 months ago

1.8.0

11 months ago

1.7.91

11 months ago

1.7.92

11 months ago

1.7.93

11 months ago

1.7.94

11 months ago

1.7.95

11 months ago

1.7.96

11 months ago

1.8.21

11 months ago

1.7.97

11 months ago

1.8.22

11 months ago

1.7.61

12 months ago

1.7.63

12 months ago

1.7.9

11 months ago

1.7.631

12 months ago

1.7.8

11 months ago

1.7.632

12 months ago

1.7.7

12 months ago

1.7.6

12 months ago

1.7.5

12 months ago

1.7.4

12 months ago

1.7.3

12 months ago

1.7.2

12 months ago

1.7.1

12 months ago

1.7.71

11 months ago

1.7.72

11 months ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.4.20

1 year ago

1.4.22

1 year ago

1.4.21

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.4.19

1 year ago

1.4.18

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.9

1 year ago

1.4.11

1 year ago

1.4.8

1 year ago

1.4.10

1 year ago

1.4.7

1 year ago

1.4.13

1 year ago

1.4.12

1 year ago

1.4.15

1 year ago

1.4.14

1 year ago

1.4.17

1 year ago

1.4.16

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.11

1 year ago

1.3.7

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago