tessl install tessl/npm-eslint-config-node@3.0.0Pluggable ESLint configuration for Node.js that extends ESNext with Node.js-specific safety checks and best practices
Agent Success
Agent success rate when using this tile
73%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.12x
Baseline
Agent success rate without this tile
65%
Build a reusable button component that manages internal state and communicates with parent components through callbacks.
Create a custom button component with the following features:
Component Structure
State Management
Visual Feedback
@generates
/**
* A toggle button component that manages active/inactive state
*
* @param {Object} props - Component properties
* @param {string} props.label - The text label to display on the button
* @param {Function} [props.onStateChange] - Optional callback invoked with new state (boolean) when toggled
* @param {string} [props.className] - Optional CSS class name(s) to apply
* @returns {JSX.Element} The rendered button element
*/
export function ToggleButton(props) {
// IMPLEMENTATION HERE
}Provides the component framework and state management.