Components

Unredacted

Unredacted adapts SwiftUI's unredacted modifier into an explicit wrapper that opts nested content out of placeholder styling.

Example

Requires React 18.2+ or 19 and shared styles. See setup.

Default

Loading preview…

Code
'use client';
import { Redacted } from '@swiftuijs/ui';
import { Text } from '@swiftuijs/ui';
import { VStack } from '@swiftuijs/ui';
import { Unredacted } from '@swiftuijs/ui';
export default function Example() {
    return ((<VStack spacing={10}>
      <Redacted>
        <Text>Loading profile</Text>
      </Redacted>
      <Redacted>
        <Unredacted>
          <Text>Visible badge</Text>
        </Unredacted>
      </Redacted>
    </VStack>));
}

Status: adapted

API reference

This component currently relies on inherited element props.

Inherits additional props from IBaseComponent.