diff --git a/CHANGELOG.md b/CHANGELOG.md index 66f47f51f2..061495910b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Add mechanism for marking icons that should rotate in RTL in Teams theme; marked icons: `send`, `bullets`, `leave`, `outdent`, `redo`, `undo`, `send` @mnajdova ([#788](https://github.com/stardust-ui/react/pull/788)) - Remove ability to introduce global style overrides for HTML document from `pxToRem` @kuzhelov ([#789](https://github.com/stardust-ui/react/pull/789)) - Remove handledProps from behaviors @jurokapsiar ([#805](https://github.com/stardust-ui/react/pull/805)) +- Add `create` shorthand factory to `Header` component @layershifter ([#809](https://github.com/stardust-ui/react/pull/809)) ### Fixes - Handle `onClick` and `onFocus` on ListItems correctly @layershifter ([#779](https://github.com/stardust-ui/react/pull/779)) diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 4ea69c2a14..db7a5087b0 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -3,6 +3,7 @@ import * as React from 'react' import { childrenExist, + createShorthandFactory, customPropTypes, UIComponent, UIComponentProps, @@ -38,6 +39,8 @@ export interface HeaderProps * In addition to that, both will be displayed in the list of headings. */ class Header extends UIComponent, any> { + static create: Function + static className = 'ui-header' static displayName = 'Header' @@ -84,4 +87,6 @@ class Header extends UIComponent, any> { } } +Header.create = createShorthandFactory(Header, 'content') + export default Header