
Product
Socket Now Available on Google Cloud Marketplace
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
@doruk/components
Advanced tools
import { Button, Loader } from "@doruk/components"
const aButton = () => (
<Button accent="success">
Hello world!
</Button>
);
const aLoader = () => (
<Loader size="md" fill="rebeccapurple" />
);
const overlayedLoader = () => (
React.createPortal(
<Loader
variant="rect5"
fullscreen={{
bg: { color: "rgba(0,0,0,.5)", tint: 9 }
}}
/>,
document.getElementById("loader")
)
);
const yetAnotherLoader = () => (
<Loader
size="xs"
fullscreen="rgba(0,0,0,.6)"
/>
);
prop | type | description | default |
---|---|---|---|
accent | string | one of; primary, secondary, success, error, warning | primary |
prop | type | description | default |
---|---|---|---|
fullscreen | string|{color,tint} | overlay loader over <body> | {color:"mistyrose",tint:3} |
fill | string | fill of the SVG elements | - |
stroke | string | stroke of the SVG elements | - |
size | string | one of; xs, sm, md, lg, xl | sm |
variant | string | one of: spin1, spin2, spin3, rect1, rect2, rect3, rect4, rect5 | spin1 |
Ul Li Main P Span Nav Div Section H1 H2 H3 H4 H5 H6 A Article Aside Audio B Br Caption Code Footer Header Hr I Iframe Img Input Li Main Ol Option P Picture Pre Progress Select Source Table Tbody Td Textarea Tfoot Th Thead Tr U Ul Video
import { Normalize, Reset, Main } from "@doruk/components"
const App = () => (
<Main>
<Reset />
<Normalize />
</Main>
);
or
import { normalize, reset, Section } from "@doruk/components"
const GlobalStyle = styled.createGlobalStyle`
${reset}
${normalize}
`;
const App = () => (
<Section>
<GlobalStyle />
</Section>
);
<script src="https://unpkg.com/@doruk/components"></script>
Then the library is available as _components; i.e. window._components.Button
FAQs
:sun_with_face:
The npm package @doruk/components receives a total of 57 weekly downloads. As such, @doruk/components popularity was classified as not popular.
We found that @doruk/components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.