Welcome to the 1UI documentation. This package provides a comprehensive set of UI components and utilities for building beautiful Intuition applications. All components are fully customizable, accessible, and follow modern design principles.
Check out our Storybook for interactive examples and detailed component documentation.
npm install @intuition/1ui
yarn add @intuition/1ui
Import and use components in your application:
import { Button, Card, Input } from '@intuition/1ui';
function MyComponent() {
return (
<Card>
<Input placeholder="Enter your name" />
<Button variant="primary">Submit</Button>
</Card>
);
}
Container - Responsive container with max-widthGrid - Flexible grid systemStack - Vertical or horizontal stackingCard - Container with elevation and paddingInput - Text input fieldSelect - Dropdown selectionCheckbox - Checkbox inputRadio - Radio button groupButton - Various button stylesModal - Dialog boxDropdown - Dropdown menuTabs - Tabbed interfaceCustomize the look and feel of components using our theming system:
import { ThemeProvider } from '@intuition/1ui';
const theme = {
colors: {
primary: '#007AFF',
secondary: '#5856D6',
// ... other colors
},
spacing: {
sm: '0.5rem',
md: '1rem',
lg: '1.5rem',
// ... other spacing values
},
// ... other theme properties
};
function App() {
return (
<ThemeProvider theme={theme}>
{/* Your app components */}
</ThemeProvider>
);
}
All components are responsive by default. Use our responsive utilities:
import { useBreakpoint } from '@intuition/1ui';
function ResponsiveComponent() {
const isMobile = useBreakpoint('md');
return (
<Stack direction={isMobile ? 'vertical' : 'horizontal'}>
{/* Your content */}
</Stack>
);
}
If you need assistance with 1UI, you can: