A look at vadimdemedes/ink-ui: 2.1k stars on GitHub, written primarily in TypeScript, tracked under the Frontend category. 💄 Ink-redible command-line interfaces made easy
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Collection of customizable UI components for CLIs made with Ink.
Install
npm install @inkjs/ui
This assumes you've already set up Ink. The easiest way to get started is create-ink-app.
Components
Text input
Documentation
TextInput is used for entering any single-line input with an optional autocomplete.
import {TextInput} from '@inkjs/ui';
<TextInput
placeholder="Enter your name..."
onSubmit={name => {
// `name` contains user input
}}
/>;
Email input
Documentation
EmailInput is used for entering an email. After "@" character is entered, domain can be autocompleted from the list of most popular email providers.
import {EmailInput} from '@inkjs/ui';
<EmailInput
placeholder="Enter email..."
onSubmit={email => {
// `email` contains user input
}}
/>;
Password input
Documentation
PasswordInput is used for entering sensitive data, like passwords, API keys and so on. It works the same way as TextInput, except input value is masked and replaced with asterisks ("*").
import {PasswordInput} from '@inkjs/ui';
<PasswordInput
placeholder="Enter password..."
onSubmit={password => {
// `password` contains user input
}}
/>;
Confirm input
Documentation
ConfirmInput shows a common "Y/n" input to confirm or cancel an operation your CLI wants to perform.
StatusMessage can also be used to indicate a status, but when longer explanation of such status is required.
import {StatusMessage} from '@inkjs/ui';
<StatusMessage variant="success">
New version is deployed to production
</StatusMessage>
<StatusMessage variant="error">
Failed to deploy a new version of this app
</StatusMessage>
<StatusMessage variant="warning">
Health checks aren't configured
</StatusMessage>
<StatusMessage variant="info">
This version is already deployed
</StatusMessage>
Alert
Documentation
Alert is used to focus user's attention to important messages.
import {Alert} from '@inkjs/ui';
<Alert variant="success">
A new version of this CLI is available
</Alert>
<Alert variant="error">
Your license is expired
</Alert>
<Alert variant="warning">
Current version of this CLI has been deprecated
</Alert>
<Alert variant="info">
API won't be available tomorrow night
</Alert>
All component have their styles defined in a theme, which is accessible to components via React context. Ink UI ships with a default theme and it can be customized or replaced with a different theme altogether.
Let's get a quick look on how to customize a Spinner's component theme. Here's how it looks by default:
First, look up component's default theme, which will give an overview which parts does this component consist of. Documentation of each component includes a link to component's theme.ts file on top. In the case of Spinner, it's source/components/spinner/theme.ts.
This component theme hints that Spinner has 3 parts: container, frame and a label. So to customize the color of the spinner itself, we'd want to change the color prop returned from the frame function.
To customize the default theme, use extendTheme function and make that custom theme available to children components via ThemeProvider.
Since each field in styles object is a function, it can return different styles based on the props that were passed in or a state of a component.
Component themes can also include configuration for rendering a component in a config object, that's not related to styling. For example, UnorderedList specifies a marker, which is a character that's rendered before each list item.
Components shipped in Ink UI automatically read the necessary styles and configuration from a theme. However, if you're adding a new custom component and a theme for it, use useComponentTheme hook to access it.
How does vadimdemedes/ink-ui compare to other Frontend projects?
vadimdemedes/ink-ui is tracked by TopGit in the Frontend category, with 2.1k GitHub stars and written in TypeScript. Browse the Frontend topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does vadimdemedes/ink-ui have?
vadimdemedes/ink-ui has 2.1k GitHub stars — refresh the page for the live number, or check github.com/vadimdemedes/ink-ui. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is vadimdemedes/ink-ui open source?
Yes — vadimdemedes/ink-ui ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/vadimdemedes/ink-ui.
What else is in the Frontend space?
vadimdemedes/ink-ui is tracked by TopGit under the Frontend category, alongside 7 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is vadimdemedes/ink-ui?
vadimdemedes/ink-ui (vadimdemedes/ink-ui) is a TypeScript project on GitHub. From the project's own README: 💄 Ink-redible command-line interfaces made easy
Where can I see vadimdemedes/ink-ui in action?
The project maintains a homepage at https://term.ink/ui. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about vadimdemedes/ink-ui?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/vadimdemedes/ink-ui is the definitive source.
Read full README in the tab above.
Want a second opinion on ink-ui?
Ask an AI that can read this page — one click and you get its take on ink-ui.