We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SandeepBaskaran/carbon-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
button.md•820 B
# Button Component
The Button component is used to trigger actions in your application.
## Props
- `kind`: 'primary' | 'secondary' | 'ghost' | 'danger' | 'tertiary'
- `size`: 'sm' | 'md' | 'lg' | 'xl' | '2xl'
- `disabled`: boolean
- `onClick`: (event) => void
## Accessibility
Buttons should have clear, descriptive labels. Use aria-label when button text is not sufficient.
Ensure proper keyboard navigation support with Tab and Enter/Space keys.
## Usage
```tsx
import { Button } from 'carbon-components-react';
<Button kind="primary" onClick={handleClick}>
Click me
</Button>
```
## Best Practices
- Use primary buttons for the main call-to-action
- Use secondary buttons for supporting actions
- Ghost buttons work well on colored backgrounds
- Limit the number of primary buttons per page to one or two