You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
import{createSignal}from'solid-js'import{Bluefish,Group,StackH,StackV,Circle,Text,Ref,Background,Arrow,Align,Distribute,Rect}from"@bluefish-js/solid";constTable=({ children, name })=>{return(<><Backgroundpadding={20}><StackVspacing={50}><Textname="label">{name}</Text>{children}{/* <Planets /> Passing inn plannets directly works, but doing it as the children variable does not*/}</StackV></Background></>)};constPlanets=()=>{return(<><Circlename="mercury"r={15}fill="#EBE3CF"stroke-width={3}stroke="black"/><Circlename="venus"r={36}fill="#DC933C"stroke-width={3}stroke="black"/><Circlename="earth"r={38}fill="#179DD7"stroke-width={3}stroke="black"/><Circlename="mars"r={21}fill="#F1CF8E"stroke-width={3}stroke="black"/></>)};constApp=()=>{return(<><div><Bluefish><Tablename="users"><Planets/>{/* passing it inn as children does not work... */}</Table></Bluefish></div></>);};exportdefaultApp;
Another note: It's not documented yet on the site, but when you make new components you should wrap them in withBluefish if you want to be able to name them.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Example code:
Example repo.
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: