-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for the ClipboardCopyButton (#650)
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"/> |