PasteButton
PasteButton reads plain text from the clipboard and forwards it to your app, aligned with SwiftUI's clipboard action model.
PasteButton reads plain text from the clipboard and forwards it to your app, aligned with SwiftUI's clipboard action model.
Examples
Default
Preview unavailable for this example in the static docs build.
Show code
function DemoPasteButton() {
const [value, setValue] = useState('Nothing pasted yet')
return (
<VStack spacing={12}>
<PasteButton onPaste={(text) => setValue(text)}>Paste text</PasteButton>
<Text>{value}</Text>
</VStack>
)
}API
| Prop | Type | Required | Description |
|---|---|---|---|
onPaste | (value: string) => void | Promise<void> | Yes | Called with the pasted plain-text content. |
Inherits additional props from Omit<IBaseElementComponent<'button'>, 'type' | 'onPaste'>.
Overview
PasteButton reads plain text from the clipboard and forwards it to your app, aligned with SwiftUI's clipboard action model.
StandardPage
StandardPage is the default page container used in NavigationStack. It provides a standard page layout and can optionally display a navigation bar with title and toolbar items.
PhaseAnimator
PhaseAnimator sequences a finite set of named phases and re-renders your content with the current phase value.