@tiller-ds/menu
v1.15.0
Published
Menu module of Tiller Design System
Downloads
598
Readme
Tiller Design System
A design system is a set of standards to manage design at scale by reducing redundancy while creating a shared language and visual consistency across different pages and channels.
Tiller Design System is open-source UI library which offers a set of visual, functional components and patterns that accelerate design and development. Components are endlessly customizable, accessible, and can integrate into any application with primarily focus on back-office applications. Tiller design system is based on Tailwind CSS, Formik and ReachUI. Besides these, Tiller is made with the help of Nx, Yarn 2 and Storybook.
| Package Name | Version | |----------------------------------------------------------------------------------|------------------------------------------------------------------| | @tiller-ds/menu | | | @tiller-ds/cra-template | |
✨ Features
- 📦 A set of high-quality React components out of the box
- 🛡 Written in TypeScript with predictable static types
- 🌐 Internationalization support
- 🎨 Powerful theme customization in every detail
- 🗃️ Storybook (Docs, Controls, Playroom)
- 📌 Rich Text Editor
- 📌 Login Pattern
🎨 Tiller Design System - Figma UI Kit
Tiller DS UI kit in Figma is a collection of Tiller components that allow you to easily create user interfaces for your Figma projects. It includes common components like buttons, input fields, and menus, as well as more specialized components, like Formik components or Login Pattern.
📚 Tiller Docs & Storybook
For more information about Tiller Design System, please refer to:
- Storybook
- Usage documentation for each component
- Prop documentation for each component
- Factories for a number of components to easily visualize and create components
- Code preview for each story
- GitHub
- npm
🚀 Getting Started
Installation with Create React App
- Install node.js
- Install yarn
- Create project with
yarn create react-app app-name --template @tiller-ds/cra-template
- Run
yarn start
command to start your project
Installation with Vite
- Install node.js
- Install yarn
- Create project with
npx degit croz-ltd/tiller-starter-vite
- Then run these commands to start your project
cd %PROJECT_NAME% yarn install yarn run dev
Installation with custom project setup
If you use your own starter, basic steps needed for Tiller to work are next:
- Dependency to
@tiller-ds/theme
and other wanted modules for your app tailwind.config.js
with this minimal config:
module.exports = {
presets: [require('@tiller-ds/theme').preset]
};
- Import of tiller styles in your main css file:
@import "@tiller-ds/theme/styles/tiller.css";
Usage
Install packages you’re interested in using, for example, a @tiller-ds/core:
npm i @tiller-ds/core
import { Button } from "@tiller-ds/core";
<Button>Hello world!</Button>
Styles
Tiller DS is bundled with a default theme that you can customize to match the look and feel of your project.
Customizations on theme level are implemented using design tokens which we call Tiller tokens. For guides on Tiller tokens, head on over to our Storybook - Theming and Customization.
Tiller Design System is divided into modules.
Available modules / packages:
@tiller-ds/alert
@tiller-ds/core
@tiller-ds/data-display
@tiller-ds/date
@tiller-ds/dev
@tiller-ds/form-elements
@tiller-ds/form-elements-advanced
@tiller-ds/formik-elements
@tiller-ds/icons
@tiller-ds/intl
@tiller-ds/menu
@tiller-ds/patterns
@tiller-ds/selectors
@tiller-ds/theme
@tiller-ds/upload
@tiller-ds/util
For more information about each component, check out our Storybook.
Versions
Every monday, a new version of the tiller packages will be published. Whether is minor or major will depend on the tasks completed the week before. If there is no new version on monday, it means there hasn't been enough changes to update the version.
Version ranges
We stick to the semantic versioning, meaning that every breaking change is published as a new major version of the Tiller packages.
Frequently asked questions
What are the major benefits of the Tiller DS?
- Better developer experience Short onboarding process, easier setup, detailed documentation, high-quality React components.
- Endlessly customizable Every detail of Tiller DS is customizable to match your brand. Style with Tiller Tokens or override components with your own.
- Functional components Formik components wrapped in a Field Formik component, as well as implementation of Fetch.
Where should I file bugs and requests?
Bugs and feature requests for Tiller DS
You can also use the above link to report a bug or a feature request for previous version of Tiller Components.
As we continue to work on the new Tiller we will move UI-related issues in the tiller repository over here to work on them. We will continue to maintain major bug and security fixes for all existing UI packages and versions. New development for UI components will happen in this repository.
🙌 Contributing
One of the goals of the Tiller Design System is to make building applications as easy as possible, while maintaining high quality UI components. The best way to achieve this goal is through a collective effort. We would appreciate contributions from the community, regardless of their size. 😍
If you're interested, definitely check our Contributing Guide.
📝 License
Licensed under the Apache 2.0 License.