diff --git a/packages/react/src/ActionBar/ActionBar.examples.stories.tsx b/packages/react/src/ActionBar/ActionBar.examples.stories.tsx new file mode 100644 index 00000000000..d80446b9d41 --- /dev/null +++ b/packages/react/src/ActionBar/ActionBar.examples.stories.tsx @@ -0,0 +1,287 @@ +import React from 'react' +import type {Meta} from '@storybook/react' +import ActionBar from '.' +import Text from '../Text' +import { + PencilIcon, + BoldIcon, + CodeIcon, + ItalicIcon, + SearchIcon, + LinkIcon, + FileAddedIcon, + HeadingIcon, + QuoteIcon, + ListUnorderedIcon, + ListOrderedIcon, + TasklistIcon, + ReplyIcon, + ThreeBarsIcon, +} from '@primer/octicons-react' +import {Box, Button, Avatar, ActionMenu, IconButton, ActionList, Textarea} from '..' +import {Dialog} from '../DialogV1' +import {Divider} from '../deprecated/ActionList/Divider' +import mockData from '../experimental/SelectPanel2/mock-story-data' + +export default { + title: 'Experimental/Components/ActionBar/Examples', +} as Meta + +export const TextLabels = () => ( + + + + + +) + +export const SmallActionBar = () => ( + + + + + + + + + +) + +type CommentBoxProps = {'aria-label': string} + +export const CommentBox = (props: CommentBoxProps) => { + const {'aria-label': ariaLabel} = props + const [value, setValue] = React.useState('') + const [isOpen, setIsOpen] = React.useState(false) + const buttonRef = React.useRef(null) + const toolBarLabel = `${ariaLabel ? ariaLabel : 'Comment box'} toolbar` + return ( + + + + + + + + + + + + + + + setIsOpen(true)} + icon={ReplyIcon} + aria-label="Saved Replies" + > + + + +