Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@superlogica/checkbox
Advanced tools
Esse package contém o componente checkbox da Superlógica para web/desktop, seguindo nossos Tokens e padrões.
npm install @superlogica/checkbox
Configure as props checked e onChange para o componente funcionar corretamente. Csaso de alguma props receber um valor inválido, o valor default daquela props será utilizado.
Props | Type | Default | |
---|---|---|---|
variant | String | check | aceita os valores check, minus e cross. |
checked | Boolean | false | recebe o valor do seu state que determina se o checkbox está selecionado ou não. |
dark | boolean | false | altera a cor do label para um tom claro quando for true |
value | String | null | recebe o valor do checkbox. |
label | String | null | label do respectivo checkbox. |
marginTop | String | none | aceita os tamanhos de margin encontrados na documentação, ex: lg, md, sm. |
marginRight | String | none | aceita os tamanhos de margin encontrados na documentação, ex: lg, md, sm. |
marginBottom | String | md | aceita os tamanhos de margin encontrados na documentação, ex: lg, md, sm. |
marginLeft | String | none | aceita os tamanhos de margin encontrados na documentação, ex: lg, md, sm. |
onChange | fn | null | recebe a função para alterar o state que determina se o checkbox está selecionado ou não. |
import CheckBox from '@superlogica/checkbox';
import { useState } from 'react';
...
const [checkBoxes, setCheboxes] = useState({
checkedA: false
});
const handleCheckBox = name => event => {
setStateForm({ ...checkBoxes, [name]: event.target.checked });
};
return (
<Checkbox
variant="check"
checked={stateForm.checkedA}
value="checkedA"
label="checkbox teste"
onChange={handleCheckBox('checkedA')}/>
);
...
FAQs
Checkbox - DSweb Superlogica
The npm package @superlogica/checkbox receives a total of 1 weekly downloads. As such, @superlogica/checkbox popularity was classified as not popular.
We found that @superlogica/checkbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.