MCPcopy Create free account
hub / github.com/arwes/arwes / Example

Function Example

apps/docs/src/app/docs/develop/react/frames/ExampleFrameProvided.tsx:5–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { Animated, Animator, AnimatorGeneralProvider, FrameOctagon } from '@arwes/react'
4
5const Example = (): JSX.Element => {
6 return (
7 <AnimatorGeneralProvider disabled={false} dismissed={false} duration={{ enter: 2, exit: 2 }}>
8 <Animator root active>
9 <Animated
10 className="relative flex size-full text-center"
11 animated={{
12 transitions: {
13 entering: {
14 width: ['50%', '100%'],
15 height: ['100%', '25%'],
16 easing: 'steps(5, end)',
17 repeat: Infinity,
18 direction: 'alternate'
19 }
20 }
21 }}
22 >
23 <FrameOctagon
24 style={{
25 // @ts-expect-error css variables
26 '--arwes-frames-line-color': '#20DFDF',
27 '--arwes-frames-bg-color': 'hsl(180deg 75% 50% / 10%)'
28 }}
29 />
30 <div className="relative m-auto p-4">
31 <p className="!m-0">Futuristic Sci-Fi UI Web Framework</p>
32 </div>
33 </Animated>
34 </Animator>
35 </AnimatorGeneralProvider>
36 )
37}
38
39const ExampleFrameProvided = (): JSX.Element => {
40 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected