Skip to content

Commit

Permalink
Add test page
Browse files Browse the repository at this point in the history
  • Loading branch information
jperals committed Jul 19, 2023
1 parent 79864db commit 0c987e7
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import AppLayout from '~components/app-layout';
import labels from './utils/labels';
import Table from '~components/table';
import { generateItems, Instance } from '../table/generate-data';
import { columnsConfig } from '../table/shared-configs';
import ExpandableSection from '~components/expandable-section';

const items = generateItems(20);

export default function () {
return (
<AppLayout
ariaLabels={labels}
contentType="table"
navigationHide={true}
content={
<Table<Instance>
header={
<ExpandableSection headerText="Click to expand header area">
<div style={{ height: '300px' }}>Content</div>
</ExpandableSection>
}
stickyHeader={true}
variant="full-page"
columnDefinitions={columnsConfig}
items={items}
/>
}
/>
);
}

0 comments on commit 0c987e7

Please sign in to comment.