# Help Bubble URL: /components/help-bubble Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/help-bubble.mdx A component that provides the user with additional information about a component's state or a specific feature. ## Anatomy ![Anatomy image of Help Bubble. Consists of Title, Description, Close Button, and Arrow.]() Help Bubble provides a Title, Description, and Close Button. ## Properties ### Placement Property ![Help Bubble Placement Property - Bottom-Center]() ![Help Bubble Placement Property - Right-Top]() Help Bubble provides appropriate positioning options relative to the triggering element. The Placement prop consists of a `{Side}` - `{Alignment}` combination. | Property | Values | | ------------- | ---------------------------- | | **Side** | Top/Bottom/Right/Left | | **Alignment** | Top/Bottom/Right/Left/Center | ### Show Close Button Property ![Help Bubble Show Close Button Property - whether the Close Button is shown]() Provides whether the Close Button is used. The Close Button includes an internal frame to guarantee the touch area. ![Close Button Target Size - a 38\*38px touch area]() Close Button Target Size: 38\*38 ### Show Description ![Help Bubble Show Description Property]() Designers can express a Help Bubble without using a Description if needed. **Using only a Description is not recommended.** ### Adjusting the Help Bubble Arrow position ![Adjusting the Help Bubble Arrow position - maintain a minimum 14px spacing]() The Help Bubble's Arrow can be adjusted to find the appropriate position on the screen. When adjusting, a minimum spacing of 14px must be maintained. ## Guidelines ### Help Bubble width ![Example of Help Bubble width]() The default maximum width of Help Bubble is 280px. Based on body typography, this fits roughly 20 characters per line, a width where a single supplementary guidance sentence fits within 2-3 lines. If a different width is needed depending on where the Help Bubble is used and its content, specify the maximum width directly at the point of use. ### Spacing between Help Bubble and the Trigger element ![Spacing between Help Bubble and the Trigger element - maintain a minimum of 4px]() Help Bubble must maintain a minimum spacing of 4px from the Trigger element. The point of use can flexibly adjust the spacing as needed. ### When Overflowing relative to the screen ![Example of Help Bubble displaying without overflow on the screen]() ![Example of a Help Bubble with Placement: Bottom-Left flipping due to overflow on the screen]() Depending on the Trigger's position or the intended position on the screen, Help Bubble may be positioned at the edges of the screen on any side. In such cases, the Help Bubble's position is adjusted according to the implementation logic. ![Example of the Help Bubble Arrow maintaining left-right alignment with the Trigger]() ![Example of the Help Bubble Arrow maintaining top-bottom alignment with the Trigger]() By default, the Arrow is positioned at the center of the Trigger element. Therefore, adjusting the Arrow's position should only be done with visual correction or a clear intent. ### Showing and closing Help Bubble ![How to open Help Bubble - tapping the Trigger element]() Help Bubble can be shown when the Trigger element is tapped, or it can exist shown from the start. ![How to close Help Bubble - tapping the Trigger element]() A Help Bubble that does not show a Close Button must close at an appropriate time, such as when the Trigger or the area outside the Help Bubble is tapped. ![How to close Help Bubble - tapping the Close Button]() A Help Bubble that shows a Close Button must close when the Close Button is tapped, and whether it closes when the outside area is tapped can be decided directly based on the importance of the content the Help Bubble provides. ![Example of all Help Bubble positions - Bottom-Left, Top-Left, Right-Top, Left-Top, Right-Center, Left-Center, Right-Bottom, Left-Bottom, Bottom-Center, Top-Center, Bottom-Right, Top-Right]() ## Specification Component spec (JSON): /rootage/components/help-bubble.json