Comments (2)
Yes, I was thinking about state attributes too. However it would make it more complicated.
Another idea that I have on my mind is to create a "states" section showcasing all the states:
:hover
:focus
:focus-visible
And of course custom states as well. This would mean the need to distinguish "state attributes" (although all the attributes that do not match properties can be considered).
from api-viewer-element.
Looks great! Have you considered state attributes?
from api-viewer-element.
Related Issues (20)
- Error: UNKNOWN_VALUE: Unknown value: CustomElement.js HOT 3
- Custom elements without exports are not recognized HOT 12
- Support `deprecated` flag
- Distinguish between static properties and instance properties
- The npm watch task is not notified about file changes HOT 3
- CDN errors HOT 5
- Reconsider the demo template syntax
- Style get side effect when rendering in <api-demo>
- Providing shadow part styles to template HOT 3
- Initialize demo imperatively, with code
- How to document methods and method arguments? HOT 6
- Add online playground to demo HOT 1
- cssProperties ignore custom ordering in its JSON value array HOT 1
- Support for Custom Elements Manifest 1.0.0? HOT 2
- Exclude attributes managed by the component itself from the demo snippet HOT 3
- feat: setting manifest with json script
- refactor: separate knobs from manifest
- refactor: state management
- Make it possible to pass complex properties (objects, arrays) to element HOT 1
- Support for lit 2 components HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-viewer-element.