DHI-GRAS / react-components

React components we use in our frontends
MIT License
1 stars 0 forks source link

feat(SidebarControl): add SidebarControl component and test #47

Closed Robert-OP closed 3 years ago

Robert-OP commented 3 years ago

The SidebarControl component is a container that helps users navigate with ease in a sidebar. Using this component is done by proving the props below, the title prop is mandatory whilst the other props are optional.

type SidebarControlProps = {
  handleToggleSidebar?: () => void;
  icons?: Array<{ id: number; component: React.FC; tooltip: string }>;
  mobile?: boolean;
  openSidebar?: boolean;
};
bertearazvan commented 3 years ago

:tada: This PR is included in version 1.14.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: