Components
TextSelection
TextSelection adapts SwiftUI's textSelection(_:) modifier into an explicit wrapper that controls browser text selection semantics.
Example
Requires React 18.2+ or 19 and shared styles. See setup.
Enabled
Loading preview…
Code
'use client';
import { Card, Text, TextSelection } from '@swiftuijs/ui';
export default function Example() {
return ((<TextSelection>
<Card>
<Text>Copy this diagnostic string from the docs preview.</Text>
</Card>
</TextSelection>));
}Status: adapted
More examples
Disabled
API reference
| Prop | Type | Required | Description |
|---|---|---|---|
selection | 'enabled' | 'disabled' | No | — |
Inherits additional props from IBaseComponent.