mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
docs: fix "no-op" typo
This commit is contained in:
parent
0aa52fe154
commit
f005f14316
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ In this example, we use the open source module [clipboard-copy](https://github.c
|
|||
|
||||
### Preventing copy functionality
|
||||
|
||||
To prevent text from being copied entirely, pass a "noop" function to the `copy` prop.
|
||||
To prevent text from being copied entirely, pass a no-op function to the `copy` prop.
|
||||
|
||||
<CodeSnippet code="yarn add -D carbon-components-svelte" copy={() => {}} />
|
||||
|
||||
|
|
|
@ -27,6 +27,6 @@ In this example, we use the open source module [clipboard-copy](https://github.c
|
|||
|
||||
### Preventing copy functionality
|
||||
|
||||
To prevent text from being copied entirely, pass a "noop" function to the `copy` prop.
|
||||
To prevent text from being copied entirely, pass a no-op function to the `copy` prop.
|
||||
|
||||
<CopyButton text="This text should not be copied" copy={() => {}} />
|
Loading…
Add table
Add a link
Reference in a new issue