Design
Component checklist
React
Overview
Toggletip is a type of tooltip that appears on click instead of hover. It can contain interactive elements, such as links to documentation or related resources.
Visual documentation
- Anatomy
- Composition
- Variants
- States
Anatomy
-
Toggletip trigger: The Toggletip opens when the trigger is clicked.
The trigger is an icon button. Soul recommends using “?” or “i” icon. - Toggletip popover: It displays additional information. This information can include interactive elements, such as links.
Composition
- Structure: Explain how the component is built (container, subcomponents, nesting).
- Alignment: Explain how elements are aligned within the component.
Variants
List and describe the different variations of the components available in the system.
Purpose: Documents the flexibility of the component and helps teams select the right variant for their use case.
Usage guidelines
- When to Use
- Best Practices
- Content Guidelines
When to use
Provide clear guidance on when, where, and how to use the component.
Purpose: Helps teams use components consistently and appropriately, preventing misuse and ensuring a cohesive user experience.
Best practices
- Do’s:
- Use the component for [specific use case].
- Keep labels concise and consistent.
- Don’ts:
- Avoid overcrowding the component with too much content.
- Don’t use the component when a full-page scroll is more appropriate.
Content guidelines
- Briefly explain the content writing practice with a link to related pages from our guidelines.
Technical documentation
- Interaction & behavior
- Properties
- Modifiers
Interaction & behavior
- Transitions/Motion: Include details on easing functions, durations, and animation (e.g., “Use --motion-duration-quick-1 for smooth transitions”).
- Keyboard & Mouse Interactions: Explain how users interact via clicks, keyboard navigation, and focus management.
Best practice: Clearly document interactive behaviors and states so developers can reproduce consistent interactions across platforms.
Properties
Document the customizable options, props (React), or parameters available for the component.
Purpose: As a technical reference for developers implementing the component, ensuring proper usage and customization.
Modifiers
- Style:
- Alternate color schemes or icon alignments.
- Size variations (e.g., small, medium, large).
- Overrides:
- Additional states include error, loading, or focused.
- Usage Examples:
- Provide annotated examples showing how a modifier changes appearance or behavior.
Accessibility
Document accessibility considerations and requirements.
Purpose: To ensure the component is accessible to everyone, including people with disabilities, and meets legal and ethical accessibility standards.
References
- Link for the external article that can explain any part of the component more deeply.
Related components
List and briefly describe components that are related or can be used in conjunction with this one.
Purpose: Helps teams understand the component ecosystem and decide which components to use together.