Git Product home page Git Product logo

alidantech / styled-tsx Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 189 KB

A package that uses the styled-components package to create reusable UI components.

License: GNU General Public License v3.0

JavaScript 2.05% HTML 1.07% TypeScript 96.88%
npm npm-package reusable-components syled-components tsx typescript vite ui ui-library components-library components-react css-ui styled styled-components

styled-tsx's Introduction

styled-tsx Components Library

This library is a collection of reusable UI components built using the popular styled-components package for React. Styled-components allows you to write actual CSS code to style your components, making it easy to create visually appealing and customizable user interfaces.

Installation

To use this library in your React project, you need to install both the styled-components package and this library. You can do this by running the following command:

  npm install styled-components alidante/styled-tsx

Usage

Once you have installed the required packages, you can start using the components in your React application. Import the desired component from the library and use it in your JSX code.

import React from 'react';
import { Button }, StyledApp from 'alidante/styled-tsx';

const App = () => {
  return (
    <StyledApp>
      <Button primary text="click me" onClick={(){}} />
    </StyledApp>
  );
};
export default App;

Available Components

Visit the DOCUMENTATION to learn about how to use each of these:

  1. Button: Interactive element for user actions.
  2. Input: Accepts user input, like text or numbers.
  3. Checkbox: Allows users to make binary choices.
  4. Radio Button: Allows users to select one option from a set.
  5. Dropdown: Presents a list of options for selection.
  6. Toggle Switch: A switch for toggling between two states.
  7. Slider: Allows users to select a value from a range.
  8. Alert: Displays important messages or notifications.
  9. Modal: A popup or overlay for additional content.
  10. Card: Container for organized content with a consistent structure.
  11. Accordion: Expands and collapses content sections.
  12. Navbar: Navigation bar for website or app.
  13. Breadcrumb: Navigation aid indicating the current page's location.
  14. Tabs: Organizes content into tabbed sections.
  15. Pagination: Breaks content into multiple pages.
  16. Tooltip: Provides additional information on hover.
  17. Avatar: Represents a user or entity with an image.
  18. Progress Bar: Displays the progress of a task.
  19. Spinner/Loader: Indicates loading or processing.
  20. Date Picker: Allows users to pick a date.
  21. Time Picker: Allows users to pick a time.
  22. Calendar: Displays dates and allows interaction.
  23. Map: Embeds an interactive map in the UI.
  24. Video Player: Embeds video content with controls.
  25. Audio Player: Embeds audio content with controls.
  26. Rating/Review: Allows users to rate or review items.
  27. Tag: Represents labels or categories.
  28. Badge: Displays additional information or status.
  29. Menu: Presents a list of actions or options.
  30. Stepper: Guides users through a multi-step process.
  31. Form: Collects and submits user input.
  32. Table: Displays structured data in rows and columns.
  33. Slider Carousel: Displays a rotating set of items.
  34. Notification Bell: Indicates new notifications.
  35. Search Bar: Allows users to search for content.
  36. Progress Indicator: Indicates ongoing operations.
  37. Chat Box: Facilitates real-time communication.
  38. Social Share: Allows users to share content on social media.

Customization

All components in this library support customization through styled-components' prop-based styling. Refer to the documentation for each component to learn about available props and customization options.

Contributing

Feel free to contribute to the development of this library. If you encounter any issues or have suggestions for improvement, please open an issue on the GitHub repository.

License

This library is licensed under the GNU License - see the LICENSE file for details.

styled-tsx's People

Contributors

alidantech avatar

Stargazers

Annuar avatar  avatar

Watchers

 avatar

styled-tsx's Issues

Create a new vite project

Start the development process by create a new react project using vite.

  • Create new project
  • Install styled-components package
  • Install font-awesome package

Create a card

Create a reusable card with customizable attributes.

Create styled buttons

  • Elevated button - has a shadow
  • Outlined button - has a border
  • Primary Button - has primary theme color as the bg color
  • Secondary Button has the secondary theme color as the bg color

Add theme component

  • Install the theme provider package from styled components
  • Create a theme component
  • Add default theme colors and styles

Add tsx

Add typescript to the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.