Installation
Install
npm install @devraj-labs/vajra-ui-core
Peer dependencies
npm install react react-native
| Package | Minimum version |
|---|---|
react | >=18.0.0 |
react-native | >=0.73.0 |
Quick start
import { Box, Row, CoreText, CorePressable } from '@devraj-labs/vajra-ui-core';
export default function App() {
return (
<Box p={16} bg="#fff" rounded={8} gap={12}>
<Row align="center" gap={8}>
<CoreText fontSize={16} fontWeight="600" color="#111">
Hello
</CoreText>
</Row>
<CorePressable onPress={() => {}} bg="#2563EB" rounded={8} p={14} align="center">
<CoreText color="#fff" fontWeight="600">
Get started
</CoreText>
</CorePressable>
</Box>
);
}
There is no provider to wrap your app in, vajra-ui-core has no theme or context to set up. Import a primitive and start passing style props.
Looking for tokens, themes, and pre-styled components? See @devraj-labs/vajra-ui, which builds on top of these primitives.