/** ******************************************************************************************************************* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. * ******************************************************************************************************************** */ import React from 'react'; import Popover from '.'; import Stack from '../../layouts/Stack'; import ColumnLayout, { Column } from '../../layouts/ColumnLayout'; import StatusIndicator from '../StatusIndicator'; import Button from '../Button'; import KeyValuePair from '../KeyValuePair'; import { action } from '@storybook/addon-actions'; export default { component: Popover, title: 'Components/Popover', }; export const Small = () => ( Code snippet copied} > ); export const Medium = () => ( Memory Error} triggerType="text" content={ This instance contains insufficient memory. Stop the instance, choose a different instance type with more memory, and restart it. } > Error ); export const Large = () => ( Available} > } > eth0 ); export const Hover = () => ( This appears when you hover over the trigger region} > Hover ); export const StateChangeCallbacks = () => ( Code snippet copied} onOpen={action('opened')} onClose={action('closed')} > );