restaurant-ui
v1.7.4-SSR
Published
This is ui component package for resturant website
Readme
Restaurant UI Components
A comprehensive UI component library for restaurant websites, built with React, TypeScript, and Styled Components. This package is under devloping
🚀 Features
- Modern UI Components: Pre-built components specifically designed for restaurant websites
- TypeScript Support: Fully typed components for better development experience
- Theme Support: Customizable theming system
- Responsive Design: Mobile-first approach with responsive layouts
- Accessibility: WCAG compliant components
- Storybook Documentation: Interactive documentation and component playground
📦 Installation
npm install restaurant-ui
# or
yarn add restaurant-ui🔧 Peer Dependencies
{
"react": "^18.0.0",
"react-dom": "^18.0.0",
"styled-components": "^5.3.0",
"framer-motion": "^12.6.3"
}🎨 Available Components
Layout Components
Container- Responsive container with fluid optionRow- Flexbox-based row componentCol- Responsive column component with breakpointsTypography- Text components with various styles
UI Components
Button- Customizable button with variantsInputField- Form input field with validationInputTextArea- Multi-line text inputLink- Styled link component
Restaurant-Specific Components
OpeningHours- Display restaurant operating hoursSectionBgImage- Section with background image and overlayOurStory- Story section with rich text supportImageGallery- Lightbox-enabled image galleryContactForm- Contact information and formMap- Google Maps integration
Utility Components
Overlay- Semi-transparent overlayImageWithFallBack- Image component with fallback support
🛠 Usage
Basic Setup
import { Button, Container, Row, Col } from "restaurant-ui/components";
function App() {
return (
<ThemeProvider>
<Container>
<Row>
<Col>
<Button>Order Now</Button>
</Col>
</Row>
</Container>
</ThemeProvider>
);
}📚 Documentation
Visit our Storybook documentation for:
- Interactive component playground
- Props documentation
- Usage examples
- Theme customization guide
🧪 Testing
# Run tests
npm test
# or
yarn test🏗 Development
# Install dependencies
yarn install
# Start Storybook
yarn storybook
# Build package
yarn build
# Run tests
yarn test📝 License
MIT
👥 Contributing
Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
📞 Support
For support, please open an issue in the GitHub repository or contact the maintainers.
