@raster-app/raster-toolkit
v0.1.2
Published
A reusable collection of React components and tools for Raster
Readme
Raster Toolkit
A toolkit for integrating Raster functionality into React applications.
Installation
npm install @raster-app/raster-toolkitRequired Peer Dependencies
This package requires the following peer dependencies:
npm install react@^19 react-dom@^19 use-sync-external-store immerFeatures
- Image browsing, selection, and preview
- Video support for media files
- Library selection and browsing
- Responsive layout with infinite scrolling
- Version management for images and videos
Usage
import React from 'react'
import { RasterImages } from '@raster-app/raster-toolkit'
const HomePage = () => {
const config = {
orgID: 'your-org-id',
apiKey: 'your-api-key',
}
return (
<div>
<h1>Welcome to My Next.js App</h1>
<RasterImages config={config} initialValue={initialValue} />
</div>
)
}
export default HomePageMedia Support
Images
Standard image files are supported and will display their dimensions.
Videos
Video files are supported and can be played inline.
