### Get Help for Orbit Tracking
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-tracking/README.md
Run orbit-tracking --help to view a list of available options and examples.
```bash
orbit-tracking --help
```
--------------------------------
### Default Theme Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/02-foundation/04-color/03-theming.mdx
Illustrates the default theme usage in a React component. No specific setup is required for this basic example.
```jsx
```
--------------------------------
### Integrate React Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/pages/mdx-examples.mdx
Embed interactive React examples directly into MDX using the ReactExample component, referencing a specific example by its ID.
```jsx
```
--------------------------------
### Default Pagination Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/11-navigation/pagination/01-guidelines.mdx
A standard example of the Pagination component. Use this for basic pagination needs.
```javascript
import { Pagination } from "@kiwicom/orbit-components";
function Example() {
return (
);
}
```
--------------------------------
### BadgeList Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/03-information/badgelist/01-guidelines.mdx
A default example of the BadgeList component.
```javascript
```
--------------------------------
### ButtonMobileStore Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/01-action/buttonmobilestore/01-guidelines.mdx
This is the default implementation of the ButtonMobileStore component. Use it to encourage app downloads and installations.
```jsx
```
--------------------------------
### Install Orbit Design Tokens via npm
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-design-tokens/README.md
Install the package into your project using npm.
```bash
npm install --save @kiwicom/orbit-design-tokens
```
--------------------------------
### Badge Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/03-information/badge/01-guidelines.mdx
A basic example of the Badge component. Use this for general information display.
```jsx
```
--------------------------------
### Install Orbit Design Tokens via Yarn
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-design-tokens/README.md
Install the package into your project using Yarn.
```bash
yarn add @kiwicom/orbit-design-tokens
```
--------------------------------
### Install Orbit Tailwind Preset with npm
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-tailwind-preset/README.md
Install the Orbit Tailwind preset as a development dependency using npm.
```bash
npm install --save-dev @kiwicom/orbit-tailwind-preset
```
--------------------------------
### Install Orbit-components with npm
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/README.md
Add the orbit-components package to your project using npm.
```bash
npm install --save @kiwicom/orbit-components
```
--------------------------------
### Default Switch Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/07-interaction/switch/01-guidelines.mdx
A basic example of the Switch component. Use for simple on/off toggles where the effect is immediate and clear.
```javascript
import { Switch } from '@kiwicom/orbit-components';
function Example() {
return ;
}
```
--------------------------------
### Install Orbit Tailwind Preset with Yarn
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-tailwind-preset/README.md
Install the Orbit Tailwind preset as a development dependency using yarn.
```bash
yarn add -D @kiwicom/orbit-tailwind-preset
```
--------------------------------
### Import README Component
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/02-foundation/11-tailwind/01-installation.mdx
This import statement brings in the README component, which likely contains detailed installation instructions and usage examples.
```javascript
import README from "@kiwicom/orbit-tailwind-preset/README.md";
```
--------------------------------
### Install Orbit Tracking with NPM or Yarn
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-tracking/README.md
Install the orbit-tracking package as a development dependency using either NPM or Yarn.
```bash
npm install --save-dev @kiwicom/orbit-tracking
```
```bash
yarn add -D @kiwicom/orbit-tracking
```
--------------------------------
### Default Seat Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/08-visuals/seat/01-guidelines.mdx
Renders a default Seat component. No specific setup is required beyond importing the component.
```jsx
```
--------------------------------
### Default Drawer Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/04-overlay/drawer/01-guidelines.mdx
This is a basic example of a Drawer component. It's useful for displaying long content that needs to be kept out of sight initially.
```jsx
```
--------------------------------
### InputGroup Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputgroup/01-guidelines.mdx
A default example of the InputGroup component.
```jsx
```
--------------------------------
### Table Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/02-structure/table/01-guidelines.mdx
A basic example of the Orbit Table component. Use this for presenting tabular information with a clear, repeating structure.
```javascript
<>BaggageAvailabilityCarry on1Small bag1Checked baggage1Second checked baggage0>
```
--------------------------------
### Default NavigationBar Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/11-navigation/navigationbar/01-guidelines.mdx
This is a default example of the NavigationBar component. Use it for top-level navigation and branding.
```jsx
{}}
>
Home
About
Contact
```
--------------------------------
### Input Field States Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputfield/01-guidelines.mdx
Illustrates various states of the InputField, such as error and help messages, to guide user input and provide feedback.
```javascript
```
--------------------------------
### Modal Title Examples (Do)
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/04-overlay/modal/01-guidelines.mdx
Examples of concise and action-oriented modal titles that set clear context for the user.
```text
Save payment card
Activate your plan
Priority Boarding
```
--------------------------------
### Notification Badge Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/03-information/notificationbadge/01-guidelines.mdx
A basic example of the Notification Badge component.
```jsx
```
--------------------------------
### Select Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/select/01-guidelines.mdx
A default Select component example. This is typically used when presenting many options where only one can be selected.
```javascript
<>>
```
--------------------------------
### Install Orbit-components with Yarn
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/README.md
Add the orbit-components package to your project using Yarn.
```bash
yarn add @kiwicom/orbit-components
```
--------------------------------
### Search Layout Example
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Layout/README.md
Implement the Search layout, which consists of three columns for filters, main content, and promotion.
```jsx
import Layout, { LayoutColumn } from "@kiwicom/orbit-components/lib/Layout";
const App = () => (
The left SideBar for filtersThe main section for displaying the resultsThe right SideBar for promotion
);
```
--------------------------------
### Install ESLint Plugin
Source: https://github.com/kiwicom/orbit/blob/master/packages/eslint-plugin-orbit-components/README.md
Install the plugin using npm or yarn. This command adds the package as a development dependency.
```sh
# npm
npm install @kiwicom/eslint-plugin-orbit-components --save-dev
```
```sh
# yarn
yarn add @kiwicom/eslint-plugin-orbit-components --dev
```
--------------------------------
### Render Default Itinerary
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/02-structure/itinerary/01-guidelines.mdx
Use this example to render the default Itinerary component.
```jsx
```
--------------------------------
### Input Labels
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputgroup/01-guidelines.mdx
Example showing how to use labels within an InputGroup.
```jsx
```
--------------------------------
### Textarea Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/textarea/01-guidelines.mdx
A basic example of a Textarea component. Use for collecting longer answers or detailed information from users.
```jsx
```
--------------------------------
### Install Orbit Design Tokens
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/02-foundation/05-design-tokens/02-installation.mdx
Install the design tokens package using npm or yarn. This is necessary if you are not using Orbit components, which include the tokens as a dependency.
```shell
# Using npm
npm install --save @kiwicom/orbit-design-tokens
```
```shell
# Using yarn
yarn add @kiwicom/orbit-design-tokens
```
--------------------------------
### Input Help and Error Messages
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputgroup/01-guidelines.mdx
Example demonstrating how to apply help and error messages to an InputGroup.
```jsx
```
--------------------------------
### Booking Layout Example
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Layout/README.md
Implement the Booking layout, which consists of two columns for the booking form and a summary sidebar.
```jsx
import Layout, { LayoutColumn } from "@kiwicom/orbit-components/lib/Layout";
const App = () => (
The main section for Booking formThe left SideBar for displaying the summary
);
```
--------------------------------
### Drawer Accessibility Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/04-overlay/drawer/03-accessibility.mdx
This example demonstrates how to integrate a Drawer with a toggle button, ensuring proper ARIA attributes for accessibility. It manages the drawer's open state and links it to the toggle button using `aria-controls`.
```jsx
const [drawerOpen, setDrawerOpen] = React.useState(false);
const drawerId = "my-drawer";
return (
<>
setDrawerOpen(false)}
title="Settings"
>
{/* Drawer content */}
>
);
```
--------------------------------
### Input Field Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputfield/01-guidelines.mdx
Demonstrates the default appearance and usage of the InputField component.
```javascript
```
--------------------------------
### Tooltip Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/04-overlay/tooltip/01-guidelines.mdx
Demonstrates the default appearance and behavior of the Tooltip component.
```jsx
```
--------------------------------
### Input Background Link
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputgroup/01-guidelines.mdx
Example demonstrating the use of background links within an InputGroup.
```jsx
```
--------------------------------
### Badge with Icon Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/03-information/badge/01-guidelines.mdx
Demonstrates how to use an icon within a badge. Icons should generally be placed on the left.
```jsx
```
--------------------------------
### InputGroup States Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputgroup/01-guidelines.mdx
Demonstrates various states for the InputGroup component, including error and help messages.
```jsx
```
--------------------------------
### Sample Text Code Block
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/pages/mdx-examples.mdx
A basic text code block example.
```txt
Sample text here...
```
--------------------------------
### Render ItinerarySegmentStop
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/02-structure/itinerary/01-guidelines.mdx
Use this example to render the ItinerarySegmentStop component, which is part of the Itinerary component.
```jsx
```
--------------------------------
### Basic Popover Usage
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Popover/README.md
This is a basic example of how to use the Popover component. It requires content and a reference element (children).
```jsx
```
--------------------------------
### Basic Wizard Implementation
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/10-progress-indicators/wizard/03-accessibility.mdx
This example shows a basic implementation of the Wizard component with multiple steps. Ensure proper aria-labels and roles are used for screen reader compatibility.
```jsx
setActiveStep(stepIndex)}
>
```
--------------------------------
### Switch with Icons Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/07-interaction/switch/01-guidelines.mdx
Demonstrates using icons with the Switch component to visually indicate the current state. Ensure the function is clear even without icons.
```javascript
import { Switch } from '@kiwicom/orbit-components';
import { Airplane, Cloud } from '@kiwicom/orbit-components/lib/icons';
function Example() {
return (
}
suffix={}
/>
);
}
```
--------------------------------
### Run Orbit Tracking (Default)
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-tracking/README.md
Execute the orbit-tracking command without arguments to fetch and parse all available repositories.
```bash
orbit-tracking
```
--------------------------------
### Layout Booking Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/12-layout/layout/01-guidelines.mdx
Demonstrates the Booking layout, a two-column layout on larger screens that stacks columns on smaller screens.
```javascript
```
--------------------------------
### Basic NavigationBar Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/11-navigation/navigationbar/03-accessibility.mdx
Demonstrates a basic NavigationBar with a nested nav element and links. Ensure descriptive `openTitle` is used for the menu button.
```jsx
}>
Flights
AboutContact
```
--------------------------------
### InputFile Component: Codemod Translation Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/05-development/04-migration-guides/05-v23.mdx
Example of how the codemod injects 'intl.formatMessage' for the 'labelRemove' prop in the InputFile component.
```jsx
intl.formatMessage({
id: "common.screenreader.remove_file.button",
defaultMessage: "Remove file",
});
```
--------------------------------
### Modal Title Examples (Don't)
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/04-overlay/modal/01-guidelines.mdx
Examples of modal titles to avoid, which are too verbose or lack clear user direction.
```text
Your payment card is safe with us
Great! Your email has been verified. Now activate your plan.
All details about Priority Boarding
```
--------------------------------
### ListChoice Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/listchoice/01-guidelines.mdx
A default example of the ListChoice component. Use this for presenting similar choices with structured information.
```jsx
```
--------------------------------
### Default Popover Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/04-overlay/popover/01-guidelines.mdx
This is a default example of the Popover component. It's used to showcase the basic implementation and appearance.
```jsx
```
--------------------------------
### Layout Search Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/12-layout/layout/01-guidelines.mdx
Shows the Search layout, a three-column layout on larger screens that stacks columns on smaller screens.
```javascript
```
--------------------------------
### Button Component Usage
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Button/README.md
Demonstrates the basic import and usage of the Button component.
```jsx
import Button from "@kiwicom/orbit-components/lib/Button";
```
--------------------------------
### Card Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/02-structure/card/01-guidelines.mdx
A basic example of a Card component. Use when you have long sections of content with a similar structure that need to be organized into related groups.
```jsx
Content for section 1
Content for section 2
```
--------------------------------
### Text Component Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/09-text/text/01-guidelines.mdx
Demonstrates the default appearance and usage of the Text component. This is the base for all text styling.
```javascript
import { Text } from '@kiwicom/orbit-components';
This is a default text.
```
--------------------------------
### FakeRadio Component Example
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Radio/README.md
Example of using FakeRadio for visual representation, often used with custom controls. Ensure to handle the onChange event at a parent level.
```jsx
import * as React from "react";
{}}>
Item title
;
```
--------------------------------
### Seat Sizes Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/08-visuals/seat/01-guidelines.mdx
Demonstrates how to use different sizes of the Seat component. Use small seats for small screens and medium seats for larger ones. Media queries or the useMediaQuery hook can assist with responsive sizing.
```jsx
```
--------------------------------
### Default ChoiceGroup Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/choicegroup/01-guidelines.mdx
This example demonstrates the default appearance and behavior of the ChoiceGroup component. It is typically used to group a small set of closely related options.
```jsx
\n \n \n \n
```
--------------------------------
### NavigationBar Focus Management Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/11-navigation/navigationbar/03-accessibility.mdx
Implements focus management for an accessible drawer pattern. This pattern connects the button and drawer with matching IDs, communicates drawer state to screen readers, and manages focus for keyboard users.
```tsx
const App = () => {
const buttonRef = useRef(null);
const [isDrawerOpen, setDrawerOpen] = useState(false);
const drawerLabelId = "navigation-drawer-title";
const handleDrawerOpen = () => setDrawerOpen(true);
const handleDrawerClose = () => {
setDrawerOpen(false);
// Return focus to button when drawer closes
if (buttonRef.current) buttonRef.current.focus();
};
return (
<>
{/* navigation content */}
Navigation Menu
HomeProductsContact
>
);
};
```
--------------------------------
### Select States Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/select/01-guidelines.mdx
Demonstrates various states of the Select component, including error and help messages. Use this to show users feedback on their selection.
```javascript
<>
>
```
--------------------------------
### Get Modal Scroll Position
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Modal/README.md
Demonstrates how to get the current scroll position of a Modal component using the `getScrollPosition` method. This is recommended over constant reading for performance.
```jsx
class Component extends React.Component {
const modalRef = React.useRef | null>(null)
const getScroll = () => {
if (modalRef.current) {
setLocalScrollPosition(modalRef.current.getScrollPosition());
}
};
render() {
return (
Some content.
);
}
}
```
--------------------------------
### InputFile Default Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/05-input/inputfile/01-guidelines.mdx
This is the default InputFile component. It is used to collect files from users and provide clear guidance on what should be attached.
```jsx
```
--------------------------------
### Displaying Destination Images in a Grid
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/06-kiwi-use/02-content/04-social-media/02-visual-treatment.mdx
This example demonstrates how to use the Orbit Grid component to lay out images for destination showcases. It defines columns, rows, and gaps for responsive image arrangement.
```jsx




```
--------------------------------
### Layout MMB Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/12-layout/layout/01-guidelines.mdx
Illustrates the MMB layout, which is a single-column layout.
```javascript
```
--------------------------------
### Timeline Step Types Example
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/10-progress-indicators/timeline/01-guidelines.mdx
Demonstrates different step types (success, warning, critical) for completed steps in a Timeline. Use these types to provide context about the outcome of each step.
```jsx
```
--------------------------------
### BadgeList with Disclosure
Source: https://github.com/kiwicom/orbit/blob/master/docs/src/documentation/03-components/03-information/badgelist/01-guidelines.mdx
Example of BadgeList with progressive disclosure using a tooltip.
```javascript
Details
),
},
{
icon: 'check',
label: 'Guaranteed transfer',
type: 'success',
},
]}
/>
```
--------------------------------
### Basic Wizard Implementation
Source: https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/src/Wizard/README.md
Use the Wizard component as a container for multiple WizardStep components to create a multi-step process. Configure the active and completed steps, and provide a callback for step changes.
```jsx
{}}>
```