- Welcome
- Getting started
- Monthly update
- Foundations
-
Components
- Accordion
- Alert
- Alignment
- Aria Live
- Autosuggest
- Badge
- Banner Alert
- Bar Chart
- Blockquote
- Bottom Navigation
- Bottom Sheet
- Breadcrumb
- Breakpoint
- Button
- Calendar
- Card
- Card Button
- Carousel
- Checkbox
- Chip
- Code
- Content Cards
- Data Table
- Datepicker
- Description List
- Dialog
- Divider
- Drawer
- Field Set
- Flare
- Flat List
- Flight Leg
- Floating Action Button
- Floating Notification
- Form Label
- Form Validation
- Graphic Promotion
- Horizontal Navigation
- Icon
- Image
- Infinite Scroll
- Link
- List
- Map
- Mobile Scroll Container
- Modal
- Navigation Bar
- Nudger
- Overlay
- Page Indicator
- Pagination
- Panel
- Phone Input
- Picker
- Popover
- Price
- Progress Bar
- Radio Button
- Rating
- Scrollable Calendar
- Section List
- Select
- Skeleton
- Skip Link
- Slider
- Snackbar
- Spinner
- Split Input
- Star Rating
- Switch
- Table
- Text
- Text Input
- Theming
- Ticket
- Toast
- Tooltip
- Touchable Native Feedback
- Touchable Overlay
- Content
- Accessibility
Chip
Chips allow travellers to enter information, filter options, make choices, and ultimately take action.
Backpack/Chip
Default
Day | Night |
---|---|
![]() |
![]() |
On dark
Day | Night |
---|---|
![]() |
![]() |
On Image
Day | Night |
---|---|
![]() |
![]() |
Usage
Example of a Chip:
BPKChip("Chip text")
Example of a Chip with an action closure:
BPKChip("Chip text") {
print("Chip tapped")
}
Example of a selected Chip:
BPKChip("Chip text", selected: true)
Example of a disabled Chip:
BPKChip("Chip text")
.disabled(true)
Example of a Chip with leading icon:
BPKChip("Chip text", icon: .deals)
Example of a Chip on dark background:
BPKChip("Chip text", style: .onDark)
Example of a Chip on an image background:
BPKChip("Chip text", style: .onImage)
Example of a Dropdown Chip:
BPKDropdownChip("Chip text")
Example of a Dismissable Chip:
BPKDismissableChip("Chip text")
Made with ❤️ by Skyscanner © 2023
© 2023 Skyscanner Backpack. Page last updated on Apr 21, 2023, 07:45