@link1987/test-widget-20250806
v1.0.4
Published
[Test] fswap widget component
Readme
React Widget Component
A simple React component that wraps an iframe with configurable properties.
Installation
npm install test-fswap-widgetUsage
import { Widget } from 'test-fswap-widget';
// Basic usage
<Widget />
// With custom styles
<Widget
style={{ width: '400px', height: '600px' }}
className="custom-widget"
/>Props
| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | className | string | No | undefined | Custom CSS class name | | style | React.CSSProperties | No | { width: '300px', height: '450px' } | Custom inline styles |
Default Styles
- Width: 300px
- Height: 450px
- Border: none
