@cleartrip/ct-design-event-propagation
v5.21.0
Published
Event Propagation Component
Maintainers
Keywords
Readme
EventPropagation
A utility component for managing event propagation behavior.
Installation
npm install @cleartrip/ct-design-event-propagation
# or
pnpm add @cleartrip/ct-design-event-propagationPeer dependencies
# Required for all targets
npm install react
# Web only
npm install react-dom
# React Native only
npm install react-nativeUsage
Basic
import { EventPropagation } from '@cleartrip/ct-design-event-propagation';
function Example() {
return (
<EventPropagation>
{/* Basic usage */}
</EventPropagation>
);
}Accessibility
- The component follows accessibility best practices
- Ensure proper ARIA attributes are provided where needed
- Test with screen readers to ensure usability
Migration
If migrating from a previous version:
- import { EventPropagation } from 'yagami/core/components';
+ import { EventPropagation } from '@cleartrip/ct-design-event-propagation';