Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ const DataTown = () => {

Rows in a DataList can be expanded to show more information. You can set the `expanded` prop to an array of row keys to expand them by default.

<Canvas of={DataListStories.Expanded} />

### Selected

Rows in a DataList can also be selected. You can set the `selected` prop to an array of row keys to select them by default.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Added because SB and TS don't play nice with each other at the moment
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { DataList, DataTable, FlexBox } from '@codecademy/gamut';
import { DataList, DataTable, FlexBox, InfoTip, Text } from '@codecademy/gamut';
import type { Meta, StoryObj } from '@storybook/react';

import {
Expand All @@ -21,8 +21,13 @@ const meta: Meta<typeof DataList> = {
query: { sort: { name: 'desc', role: 'asc' } },
rows: [
{
name: 'Jean Luc Picard',
role: 'Captain',
name: (
<>
Some Project&nbsp;<Text color="danger"> Error Publishing</Text>
<InfoTip info="Extra info here" placement="floating" />
</>
),
role: 'something else',
ship: 'USS Enterprise',
age: '59',
species: 'Human',
Expand Down Expand Up @@ -73,7 +78,7 @@ const meta: Meta<typeof DataList> = {
{
header: 'Name',
key: 'name',
size: 'lg',
size: 'xl',
type: 'header',
sortable: true,
},
Expand Down
Loading