-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement draggable option * appearanceAnimation implemented with story * Implemented drag events * Implement size and padding * Fix padding and implement anchorOffset * First implementation of callouts * Working but ugly example without JSX * React 17 sample implementation * Minor Code modifications * Working implementation * Annotation implementation * Storybook examples * Apply suggestions from code review Co-authored-by: Nicolas Ettlin <[email protected]> * Remove ForAnnotation from prop name * Minor adaptions from Review * Implement Annotation Storybook example * Implement display priority conversion * Remove extended callout descriptions --------- Co-authored-by: Nicolas Ettlin <[email protected]>
- Loading branch information
Showing
10 changed files
with
707 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React, { ReactNode } from 'react'; | ||
|
||
const CalloutContainer = React.forwardRef< | ||
HTMLDivElement, | ||
React.PropsWithChildren<{ children: ReactNode, type?: string }> | ||
>(( | ||
{ children, type = 'container' }, | ||
ref, | ||
) => ( | ||
<div className={`mk-callout-${type}`} ref={ref}> | ||
{children} | ||
</div> | ||
)); | ||
|
||
export default CalloutContainer; |
Oops, something went wrong.