
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@qualtrics/cocreate-guided-modal
Advanced tools
A React modal component for creating AI-powered projects with a guided experience. The modal includes a form with use case selection and project overview input, integrated with AI-powered project generation.
npm install @qualtrics/cocreate-guided-modal
This package has the following peer dependencies:
Additional dependencies:
import { GuidedModal } from 'cocreate-guided-modal';
import type { ProjectInputs } from 'cocreate-guided-modal';
function App() {
const [isOpen, setIsOpen] = React.useState(true);
return (
<GuidedModal
isOpen={isOpen}
onClose={() => setIsOpen(false)}
/>
);
}
The component will automatically handle:
Prop | Type | Required | Description |
---|---|---|---|
isOpen | boolean | Yes | Controls the visibility of the modal |
onClose | () => void | No | Callback function when modal is closed. If not provided, the close button will not be shown |
type ProjectInputs = {
useCase: string; // Currently defaults to "Voice of Customer"
prompt: string; // Free-form text for project details
};
npm install
npm run dev # Start development server with Vite
npm run build # Build the package using Rollup
npm run preview # Preview the built package
npm run pack # Create an npm package
npm run test-local # Build, pack and test the package locally
To test the package locally:
npm run test-local
This will:
Alternatively, you can manually link the package:
npm run build
npm link
npm link @qualtrics/cocreate-guided-modal
To build the package for production:
npm run build
This will generate the following outputs in the dist
directory:
The component uses CSS modules for styling. The following classes are available:
.modalBody
- Custom styling for modal body.modalHorizontal
- Horizontal layout container.modalContainer
- Container for modal content.modalP
- Paragraph styling.modalDivider
- Divider line.modalVertical
- Vertical layout container.modalFooter
- Footer styling.modalButtons
- Button container stylingWhen contributing, please ensure:
FAQs
A guided modal component for creating AI-powered projects
We found that @qualtrics/cocreate-guided-modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.