- Welcome
- Getting started
- Latest updates
- Foundations
-
Components
- Accordion
- Alert
- Alignment
- Aria live
- Autosuggest
- Badge
- Banner alert
- Bar chart
- Blockquote
- Bottom navigation
- Bottom sheet
- Breadcrumb
- Breakpoint
- Button
- Calendar
- Card
- Card List
- Card button
- Carousel
- Checkbox
- Chip
- Chip group
- 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 header
- Section list
- Select
- Skeleton
- Skip link
- Slider
- Snackbar
- Snippet
- Spinner
- Split input
- Star rating
- Switch
- Table
- Text
- Text input
- Theming
- Ticket
- Toast
- Tooltip
- Touchable native feedback
- Touchable overlay
- Content
- Accessibility
Table
Tables are used for displaying data in a tabular form.
Default
Storybook failed to load.
bpk-component-table
Backpack table component.
Installation
Check the main Readme for a complete installation guide.
Usage
import {
BpkTable,
BpkTableHead,
BpkTableBody,
BpkTableRow,
BpkTableCell,
BpkTableHeadCell,
} from '@skyscanner/backpack-web/bpk-component-table';
export default () => (
<BpkTable>
<BpkTableHead>
<BpkTableRow>
<BpkTableHeadCell>Heading 1</BpkTableHeadCell>
<BpkTableHeadCell>Heading 2</BpkTableHeadCell>
<BpkTableHeadCell>Heading 3</BpkTableHeadCell>
<BpkTableHeadCell>Heading 4</BpkTableHeadCell>
</BpkTableRow>
</BpkTableHead>
<BpkTableBody>
<BpkTableRow>
<BpkTableCell>Row 1, Data 1</BpkTableCell>
<BpkTableCell>Row 1, Data 2</BpkTableCell>
<BpkTableCell>Row 1, Data 3</BpkTableCell>
<BpkTableCell>Row 1, Data 4</BpkTableCell>
</BpkTableRow>
<BpkTableRow>
<BpkTableCell>Row 2, Data 1</BpkTableCell>
<BpkTableCell>Row 2, Data 2</BpkTableCell>
<BpkTableCell>Row 2, Data 3</BpkTableCell>
<BpkTableCell>Row 2, Data 4</BpkTableCell>
</BpkTableRow>
</BpkTableBody>
</BpkTable>
);
Props
For BpkTableHead, BpkTableBody, BpkTableRow & BpkTableCell .
Property | PropType | Required | Default Value |
---|---|---|---|
children | node | true | - |
For BpkTable & BpkTableHeadCell.
Property | PropType | Required | Default Value |
---|---|---|---|
children | node | true | - |
Made with ❤️ by Skyscanner © 2023
© 2023 Skyscanner Backpack. Page last updated on Jan 12, 2023, 09:43