Comments (17)
I have found types filetypes/shards-react.d.ts
in PR #31.
It seems, it have not merged yet, so I extracted type declarations.
I will share this one for all, And very respect for @BendaCoding !
I modified it a little:
- I modified All components accept AllHTMLAttributes, =>
BaseProps extends React.AllHTMLAttributes<any>
. - I modified the type of
NavbarProps.sticky
tostring | boolean
. - I wraped them by
declare module 'shards-react'
.
usages
- Please rename
shards-react.d.ts.txt
=>shards-react.d.ts
, and put it in your source dir.
from shards-react.
+1
from shards-react.
I'd second this, I'm in the process of deciding whether to use this or ant.d atm
from shards-react.
Same, I'd love to use this with Typescript
from shards-react.
I love shard-react. The design is beautiful and elegant. Can you guys please add Typescript support
from shards-react.
+1
from shards-react.
@design-revision Maybe we can think about refactor by typescript or use ts declaration files?
from shards-react.
I have added a PR with type declarations.
They arent perfect, but its a good starting point.
See #31
from shards-react.
+1
from shards-react.
@BendaCoding are the types committed and available through npm?
from shards-react.
I would also appreciate the typescript support.
from shards-react.
Typescript support please!
from shards-react.
I also please very much
from shards-react.
++
from shards-react.
++++
from shards-react.
+1 This is basically a requirement of all modern UI frameworks at this point @design-revision
from shards-react.
+1 This is great project! I would appreciate typescript support. Then more better.
from shards-react.
Related Issues (20)
- There is no generic way of handling toggle change event
- Toggle doesn't work in mobile
- Allow tag to be a component HOT 2
- Lack of documentation on Modal section HOT 1
- Toggle prop of Modal component is not working properly.
- Documentation not accesible on firefox HOT 1
- FormCheckbox and FormRadio don't check
- Documentation not accessible on Chrome HOT 1
- ButtonGroup and ButtonMenu Should Pass "theme" Prop Down
- Dead HOT 2
- Dismissible alert : close button not centered
- Getting warning with <Popover /> component
- Tooltip should also be a prop on button component
- Doesn't Work With React 17 HOT 4
- I think your shards-react web is broken.
- npm i shards-react fails on windows HOT 2
- update bootstrap>=4.3.1 and axios>=0.21.1 to fix Cross-Site Scripting and Server-Side Request Forgery
- Contribution guide is not found
- DatePicker wrong week number
- npm warn
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 shards-react.