geist-org / icons Goto Github PK
View Code? Open in Web Editor NEWReact components for Geist icons
Home Page: https://geist-ui.dev/icons
License: MIT License
React components for Geist icons
Home Page: https://geist-ui.dev/icons
License: MIT License
vite
is more and more popular. So if user using vite
should also install babel and babel plugin. It's no necessary.( I think maybe it can be remove?the code from makeBasicDefinition:
interface Props extends React.SVGProps
Maybe it will work
interface Props extends React.SVGProps<SVGSVGElement>
And, the GitHub
component should be renamed as Github
in README.md, a spelling mistake
We may need a site to query and search all icons, let everyone use the icon by clicking and copying.
Refer to vue-icons
We can use @zeit-ui/react
to build this single page site.
Simple notepad icon.
Within each icon component, the following codes is generated (42 / 68 - 61%):
function _extends() { ... }
function _objectWithoutProperties() { ... }
function _objectWithoutPropertiesLoose() { ... }
If we generate an index.bundle.js
file, the volume maybe only half of the original.
Cache icon source to ensure the same content is published each time, avoid unnecessary errors caused by source updates.
The best solution is that we always update the source manually after source updated.
@ofekashery What's your opinion?
// update source
const res = await fetch('https://vercel.com/design/icons')
const html = await res.text()
writeToSource(html)
// generate
const cacheSource(getSource(path))
const document = new JSDOM(cacheSource).window.document
Hey, man, I really like icons like `@geist-ui/react-icon'. But it doesn't seem to support the PNP of Yarn 2.
Causing peer dependency error.
// better
import Activity from '@zeit-ui/react-icons/activity'
// now
import Activity from '@zeit-ui/react-icons/dist/activity'
// better
import { HomeIcon } from '@zeit-ui/react-icons'
// now
import { Home } from '@zeit-ui/react-icons'
It doesn't look good to add suffixes here, however, use import { Home as HomeIcon }
grammar is more annoying. In many projects using material-ui
, you can often see a lot of code similar to Home as HomeIcon
.
We can move deps to peerDependencies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.