### Install @zendeskgarden/react-dropdowns
Source: https://garden.zendesk.com/components/menu
Install the package using npm.
```bash
npm install @zendeskgarden/react-dropdowns
```
--------------------------------
### Install Tooltip package
Source: https://garden.zendesk.com/components/tooltip
Install the @zendeskgarden/react-tooltips package via npm.
```bash
npm install @zendeskgarden/react-tooltips
```
--------------------------------
### Install @zendeskgarden/react-tables
Source: https://garden.zendesk.com/components/table
Install the tables package via npm.
```bash
npm install @zendeskgarden/react-tables
```
--------------------------------
### Install @zendeskgarden/react-grid
Source: https://garden.zendesk.com/components/grid
Install the grid component package via npm.
```bash
npm install @zendeskgarden/react-grid
```
--------------------------------
### npm install @zendeskgarden/react-forms
Source: https://garden.zendesk.com/components/checkbox
Installation command for the Checkbox component.
```bash
npm install @zendeskgarden/react-forms
```
--------------------------------
### Install @zendeskgarden/react-tabs
Source: https://garden.zendesk.com/components/tabs
Install the Tabs component package using npm.
```bash
npm install @zendeskgarden/react-tabs
```
--------------------------------
### Install @zendeskgarden/react-theming
Source: https://garden.zendesk.com/components/palette
Install the @zendeskgarden/react-theming package via npm. Version 9.15.7 is referenced on the page.
```bash
npm install @zendeskgarden/react-theming
```
--------------------------------
### Install Well component
Source: https://garden.zendesk.com/components/well
Install the Well component from the @zendeskgarden/react-notifications package.
```bash
npm install @zendeskgarden/react-notifications
```
--------------------------------
### Install ColorPickers package
Source: https://garden.zendesk.com/components/color-picker
Installs the @zendeskgarden/react-colorpickers package and its peer dependencies.
```bash
npm install @zendeskgarden/react-colorpickers
```
```bash
npm install react react-dom styled-components @zendeskgarden/react-theming
```
--------------------------------
### Install peer dependencies for @zendeskgarden/react-theming
Source: https://garden.zendesk.com/components/palette
Install the required peer dependencies: react, react-dom, and styled-components.
```bash
npm install react react-dom styled-components
```
--------------------------------
### Install @zendeskgarden/react-typography
Source: https://garden.zendesk.com/components/code
Install the package via npm. Required dependencies include react, react-dom, styled-components, and @zendeskgarden/react-theming.
```bash
npm install @zendeskgarden/react-typography
```
--------------------------------
### Install Spinner with npm
Source: https://garden.zendesk.com/components/spinner
Install the @zendeskgarden/react-loaders package to use the Spinner component.
```bash
npm install @zendeskgarden/react-loaders
```
--------------------------------
### Install @zendeskgarden/react-draggable
Source: https://garden.zendesk.com/components/draggable
Install the package using npm. Requires react, react-dom, styled-components, and @zendeskgarden/react-theming as peer dependencies.
```bash
npm install @zendeskgarden/react-draggable
```
--------------------------------
### npm install dependencies for Checkbox
Source: https://garden.zendesk.com/components/checkbox
Installation command for peer dependencies of the Checkbox component.
```bash
npm install react react-dom styled-components @zendeskgarden/react-theming
```
--------------------------------
### Install and import @zendeskgarden/react-typography
Source: https://garden.zendesk.com/components/paragraph
Install the @zendeskgarden/react-typography package and its peer dependencies, then import the Paragraph component and related typography components (LG, MD, SM) for use in your React application.
```bash
npm install @zendeskgarden/react-typography
```
```bash
npm install react react-dom styled-components @zendeskgarden/react-theming
```
```javascript
import { LG, MD, Paragraph, SM } from '@zendeskgarden/react-typography'
```
--------------------------------
### Install ToggleButton with npm
Source: https://garden.zendesk.com/components/toggle-button
Install the @zendeskgarden/react-buttons package, which contains the ToggleButton component. Requires react, react-dom, styled-components, and @zendeskgarden/react-theming as peer dependencies.
```bash
npm install @zendeskgarden/react-buttons
```
--------------------------------
### getColor usage with styled-components
Source: https://garden.zendesk.com/components/utilities
Example showing how to use getColor to resolve colors from the theme, including hover and active states with offset adjustments. The example imports styled-components and getColor, defines options objects for base, hover, and active states, and creates a styled component that applies the colors.
```javascript
import styled from 'styled-components';
import { getColor } from '@zendeskgarden/react-theming';
const options = { variable: 'background.primaryEmphasis' };
const offset100 = { dark: { offset: -100 }, light: { offset: 100 } };
const offset200 = { dark: { offset: -200 }, light: { offset: 200 } };
export const StyledCustomComponent = styled.div`
background-color: ${props => getColor({ theme: props.theme, ...options })};
:hover {
background-color: ${props => getColor({ theme: props.theme, ...options, ...offset100 })};
}
:active {
background-color: ${props => getColor({ theme: props.theme, ...options, ...offset200 })};
}
`;
```
--------------------------------
### Orientation Tabs example
Source: https://garden.zendesk.com/components/tabs
Tab layout is horizontal by default and can also stack vertically. The example includes three tabs with content. The code is available in the CodeSandbox and can be copied or viewed.
```jsx
// Code for the orientation Tabs example is not shown in the source text.
// The source provides a "View code" button and "Copy code" action, but the actual code is not displayed.
// Therefore, no code can be extracted.
```
--------------------------------
### Default Tabs example
Source: https://garden.zendesk.com/components/tabs
Typical usage of the Tabs component. The example includes three tabs (Elm, Sugar Maple, Dogwood) with corresponding content panels. The code is available in the CodeSandbox and can be copied or viewed.
```jsx
// Code for the default Tabs example is not shown in the source text.
// The source provides a "View code" button and "Copy code" action, but the actual code is not displayed.
// Therefore, no code can be extracted.
```
--------------------------------
### Size Combobox
Source: https://garden.zendesk.com/components/combobox
Combobox can be default or compact in size. The example shows a tree selection field.
```jsx
Tree
Sequoia
```
--------------------------------
### Default Ordered List
Source: https://garden.zendesk.com/components/lists
Renders an ordered list with default styling. The example shows three list items: Plant, Water, Harvest.
```html
1. Plant
2. Water
3. Harvest
```
--------------------------------
### Hint text Combobox
Source: https://garden.zendesk.com/components/combobox
Hint text gives further clarification. The example shows a plant selection field with hint text.
```jsx
Plant
Choose your favorite plant
Succulent
```
--------------------------------
### Wrapper components with forwardRef
Source: https://garden.zendesk.com/components/menu
Shows how to create wrapper components for Item and ItemGroup that forward refs, matching the prop signatures.
```jsx
const ItemComponent = forwardRef((props, ref) => (