https://github.com/shyrro/sally
A Svelte component library that is fully-accessible and fully-customizable
https://github.com/shyrro/sally
Last synced: 2 months ago
JSON representation
A Svelte component library that is fully-accessible and fully-customizable
- Host: GitHub
- URL: https://github.com/shyrro/sally
- Owner: Shyrro
- Created: 2022-10-06T12:59:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T13:44:32.000Z (about 2 years ago)
- Last Synced: 2025-02-09T04:39:52.494Z (4 months ago)
- Language: TypeScript
- Size: 331 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sally
A Svelte component library that is fully-accessible and fully-customizable using @emotion/css ( WIP )Currently not possible to move forward with this lib, due to this :
- https://github.com/sveltejs/svelte/issues/7625
- https://github.com/sveltejs/svelte/issues/5112ATM, it is not possible to dynamically get parent events.
Having this :
```svelte
import MyComp from './MyComp'
let msg = ''console.log('click')} on:keydown={() => console.log('keydown')} />
```This won't work as there is currently no way to get parent events from the child component dynamically.
To achieve this, i would need to have `props` that have a `clickHandler` and `keydownHandler` to pass to the child component.
The more events you have, the more it is painful.This also blocks composing components heavily. As even if you can get the events, there is no way to spread them into your child component.
Though, i we are able to get the events, i can get around this point by using the `use` directive and appending the events myself.