test-fswap-widget
v1.0.3
Published
A simple iframe widget component
Downloads
12
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 source
<Widget testSrc="https://example.com/widget" />
// With custom styles
<Widget
style={{ width: '400px', height: '600px' }}
className="custom-widget"
/>Props
| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | testSrc | string | No | 'http://localhost:3000/widget' | Custom source URL for the iframe | | 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
