
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
dfh-ui-library
Advanced tools
npm install
1. npm install -D tailwindcss postcss autoprefixer
2. npx tailwindcss init -p
3. update tailwind.config.js "content" with following code snipet
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
]
include following css to index.css
@import '../node_modules/dfh-ui-library/dist/cjs/index.css';
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import 'tailwindcss/variants';
table {
border-collapse: collapse;
width: 100%;
}
th,
td {
padding: 10px;
border-right: 1px solid #dddddd; /* Solid right border for all cells */
}
th {
background-color: #fcfcfc; /* Optional: Add background color for header cells */
font-weight: 500;
border-top: 1px solid #dddddd;
}
/* Dashed bottom border for all rows */
tr {
border-bottom: 1px dashed #dddddd;
}
/* Remove border from the last column */
th:last-child,
td:last-child {
border-right: none;
}
tr:nth-child(even) {
background-color: #f6f6f6;
} /*# sourceMappingURL=main.css.map */
.image-wrapper {
position: relative;
width: 100%;
height: 100%;
}
.loader {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.image {
display: block;
width: 100%;
height: auto;
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
.image.loaded {
opacity: 1;
}
.loader-wrapper {
position: relative;
}
.progress-bar {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
}
npm run storybook
run above command for view the components layouts
npm run rollup
run above command for build the UI library
FAQs
# Installation
The npm package dfh-ui-library receives a total of 1,053 weekly downloads. As such, dfh-ui-library popularity was classified as popular.
We found that dfh-ui-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.