Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tenoxui/property
tenoxui css framework default properties.
https://github.com/tenoxui/property
css css-framework css-library css3 framework-css html html-css-javascript html5 javascript js library react tenoxui ts typescript ui-components web web-development website
Last synced: 2 months ago
JSON representation
tenoxui css framework default properties.
- Host: GitHub
- URL: https://github.com/tenoxui/property
- Owner: tenoxui
- License: mit
- Created: 2024-05-10T02:34:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-30T13:28:21.000Z (8 months ago)
- Last Synced: 2024-06-02T16:24:38.529Z (8 months ago)
- Topics: css, css-framework, css-library, css3, framework-css, html, html-css-javascript, html5, javascript, js, library, react, tenoxui, ts, typescript, ui-components, web, web-development, website
- Language: TypeScript
- Homepage: https://tenoxui.github.io/property/
- Size: 54.7 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# TenoxUI class and properties
## About
This is a package that contain default property for tenoxui css framework.
## How to Use
Install :
```sh
npm i tenoxui @tenoxui/property --save-dev
```Usage :
1. Without default property :
You need to defjne your type and property manually inside as parameter for tenoxui :
```jsx
import { useLayoutEffect } from "react";
import tenoxui from "tenoxui";const App = () => {
useLayoutEffect(() => {
// add tenoxui
tenoxui({
tc: "color"
}); // defining types and properties one by one as you desire
}, []);
returnHello World!
;
};export default App;
```2. With `@tenoxui/property` :
Or, just simply use tenoxui default property and you don't need to manually added it inside your project :
```jsx
import { useLayoutEffect } from "react";
import tenoxui from "tenoxui";
import property from "@tenoxui/property";const App = () => {
useLayoutEffect(() => {
// add tenoxui
tenoxui(property); // use default property
}, []);
returnHello World!
;
};export default App;
```## Breakdown
What's inside `@tenoxui/property`? This package contain all class and property that user can use as default class styler for tenoxui. And this is what's it looks like :
```js
const property = {
p: "padding",
m: "margin",
tc: "color",
bg: "background",
// more properties
};
```And this is basically same as define each types and properties inside of `tenoxui` function as its parameter :
```js
tenoxui({
p: "padding",
tc: "color",
// more properties
});
```Or, same as `defineProps` function on `v0.8.0` below :
```js
defineProps({
p: "padding",
tc: "color",
// more properties
});
```But, `defineProps` function is deprecated from `v0.9.0+` and to add new types and properties, you can directly add it inside `tenoxui` function.
## Closing
And that's all, its just a collection of types and properties.