```
## Common Component Patterns
### Button
```html
```
### Input
```html
```
### Card
```html
```
## Error Handling Pattern
```javascript
async function fetchData() {
const error = ref(null)
const isLoading = ref(true)
const data = ref(null)
try {
const response = await fetch('/api/data')
if (!response.ok) throw new Error(`HTTP ${response.status}`)
data.value = await response.json()
} catch (err) {
error.value = err.message
} finally {
isLoading.value = false
}
return { data, error, isLoading }
}
```
## Git Commands
```bash
# Daily workflow
git status
git checkout -b feature/new-feature
git add .
git commit -m "feat: add feature"
git push origin feature/new-feature
# Undo changes
git restore .
# Stash
git stash
git stash pop
```
## Performance Targets
```
LCP (Largest Contentful Paint): < 2.5s
FID (First Input Delay): < 100ms
CLS (Cumulative Layout Shift): < 0.1
Bundle Size: < 200KB gzipped
```
## Accessibility Quick Checks
- [ ] Images have alt text
- [ ] Color contrast ≥ 4.5:1
- [ ] Keyboard navigation works
- [ ] Focus indicators visible
- [ ] Form labels present
- [ ] Touch targets ≥ 44x44px
## Responsive Breakpoints
```
sm: 640px // Tablet
md: 768px // Desktop
lg: 1024px // Large
xl: 1280px // XL
```
## Common Regex Patterns
```javascript
// Email
/^[^\s@]+@[^\s@]+\.[^\s@]+$/
// URL
/^https?:\/\/.+/
// Hex color
/^#[0-9A-Fa-f]{6}$/
```