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.
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
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;
Visit the DOCUMENTATION to learn about how to use each of these:
- Button: Interactive element for user actions.
- Input: Accepts user input, like text or numbers.
- Checkbox: Allows users to make binary choices.
- Radio Button: Allows users to select one option from a set.
- Dropdown: Presents a list of options for selection.
- Toggle Switch: A switch for toggling between two states.
- Slider: Allows users to select a value from a range.
- Alert: Displays important messages or notifications.
- Modal: A popup or overlay for additional content.
- Card: Container for organized content with a consistent structure.
- Accordion: Expands and collapses content sections.
- Navbar: Navigation bar for website or app.
- Breadcrumb: Navigation aid indicating the current page's location.
- Tabs: Organizes content into tabbed sections.
- Pagination: Breaks content into multiple pages.
- Tooltip: Provides additional information on hover.
- Avatar: Represents a user or entity with an image.
- Progress Bar: Displays the progress of a task.
- Spinner/Loader: Indicates loading or processing.
- Date Picker: Allows users to pick a date.
- Time Picker: Allows users to pick a time.
- Calendar: Displays dates and allows interaction.
- Map: Embeds an interactive map in the UI.
- Video Player: Embeds video content with controls.
- Audio Player: Embeds audio content with controls.
- Rating/Review: Allows users to rate or review items.
- Tag: Represents labels or categories.
- Badge: Displays additional information or status.
- Menu: Presents a list of actions or options.
- Stepper: Guides users through a multi-step process.
- Form: Collects and submits user input.
- Table: Displays structured data in rows and columns.
- Slider Carousel: Displays a rotating set of items.
- Notification Bell: Indicates new notifications.
- Search Bar: Allows users to search for content.
- Progress Indicator: Indicates ongoing operations.
- Chat Box: Facilitates real-time communication.
- Social Share: Allows users to share content on social media.
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.
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.
This library is licensed under the GNU License - see the LICENSE file for details.