ASTRO攻略LABO ロゴ ASTRO攻略LABO
Docs / Developer Experience

Developer Experience

The DeveloperExperience component highlights the ease of use of your tool, featuring a feature list and a simulated terminal window.

Usage

import DeveloperExperience from '~/components/sections/DeveloperExperience.astro';

<DeveloperExperience 
  title="Built for Speed"
  features={['Instant server start', 'Hot Module Replacement']}
  terminal={{
    comment: 'Start the dev server',
    command: { tool: 'npm', args: 'run dev' },
    successSteps: ['Server started in 10ms', 'Watching for changes...'],
    readyMessage: 'Ready on http://localhost:3000'
  }}
/>

Example

Zero config needed

  • TypeScript ready
  • Automatic routing
  • Edge deployed
  • API routes included
# Initialize a new project
{
  "tool": "npx",
  "args": "create-awesome-app@latest"
}
            
✓ Resolving dependencies...
✓ Scaffolding project...
✓ Installing packages...
Done! Happy coding. _

Props

| Prop | Type | Description | | :--- | :--- | :--- | | title | string | The section heading. | | features | string[] | List of feature bullet points. | | terminal | TerminalProps | Configuration object for the terminal window. |

TerminalProps

interface TerminalProps {
  comment: string;        // Comment line (e.g. # Start server)
  command: {
    tool: string;         // Tool name (e.g. npm)
    args: string;         // Command args (e.g. run dev)
  };
  successSteps: string[]; // Array of success messages
  readyMessage: string;   // Final ready prompt
}