5.28.0 • Published 2d ago
@cleartrip/ct-design-container
Licence
ISC
Version
5.28.0
Deps
5
Size
66 kB
Vulns
0
Weekly
0
Container
A general-purpose container component for layout and styling.
Installation
npm install @cleartrip/ct-design-container
# or
pnpm add @cleartrip/ct-design-container
Peer dependencies
# Required for all targets
npm install react
# Web only
npm install react-dom
# React Native only
npm install react-native
Usage
Basic
import { Container } from '@cleartrip/ct-design-container';
function Example() {
return (
<Container>
{/* Basic usage */}
</Container>
);
}
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 { Container } from 'yagami/core/components';
+ import { Container } from '@cleartrip/ct-design-container';