MCPcopy Create free account
hub / github.com/flyfloor/react-component / render

Method render

demo/example/PinDemo.jsx:6–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export default class PinDemo extends React.Component {
5
6 render() {
7 return (
8 <div className='pin-demo'>
9 <h3>Pin</h3>
10 <ul>
11 <li>
12 <h4>Default pin</h4>
13 <Pin>
14 <div className='card'>
15 <h4>title</h4>
16 <p>pin at top</p>
17 </div>
18 </Pin>
19 <pre>
20 <code>
21{`
22<Pin>
23 <div>
24 <h4>title</h4>
25 <p>pin at top</p>
26 </div>
27</Pin>
28`}
29 </code>
30 </pre>
31 </li>
32 <li>
33 <h4>Pin with offset top</h4>
34 <Pin top={100}>
35 <div className='card'>
36 <h4>title</h4>
37 <p>pin at position top 100px</p>
38 </div>
39 </Pin>
40 <pre>
41 <code>
42{`
43<Pin top={100}>
44 ...
45</Pin>
46`}
47 </code>
48 </pre>
49 </li>
50 <li>
51 <h4>Scroll to given top</h4>
52 <Pin begin={800}>
53 <div className="card last">
54 <h4>title</h4>
55 <p>pin when scroll to 800px</p>
56 </div>
57 </Pin>
58 <pre>
59 <code>
60{`
61<Pin begin={800}>
62 ...
63</Pin>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected