Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for the ClipboardCopyButton #650

Merged
merged 1 commit into from
Nov 21, 2023
Merged
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
23 changes: 23 additions & 0 deletions content/components/clipboard-copy-button.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: ClipboardCopyButton
description: The `ClipboardCopy` component styled as a Primer button.
railsIds:
- Primer::Beta::ClipboardCopyButton
---

import ComponentLayout from '~/src/layouts/component-layout'
import {Link, Text} from '@primer/react'
import {Link as GatsbyLink} from 'gatsby'
export default ComponentLayout
import {AccessibilityLink} from '~/src/components/accessibility-link'

<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are in progress</Text>
<Text>Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link></Text>
</Note>

## Accessibility

### Known accessibility issues (GitHub staff only)

<AccessibilityLink label="ClipboardCopyButton"/>
Loading