
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@paprika/collapsible
Advanced tools
Collapsible component, allows the user to expand and collapse some enclosed content.
Collapsible component, allows the user to expand and collapse some enclosed content.
yarn add @paprika/collapsible
or with npm:
npm install @paprika/collapsible
Prop | Type | required | default | Description |
---|---|---|---|---|
a11yText | string | false | null | Descriptive a11y text for assistive technologies. By default, text from children node will be used. |
children | node | false | null | Body content of the collapsible. |
iconAlign | [ "left", "right"] | false | "left" | Set's icon alignment left or right. |
iconCollapse | node | false | Sets RightArrowIcon if true. | |
iconExpand | node | false | Sets DownArrowIcon if true. | |
isCollapsed | bool | false | true | State of the collapsible. |
isDisabled | bool | false | false | If the collapsible is disabled. |
hasOnlyIconToggle | bool | false | false | |
label | node | true | - | Sets the label that will display in the collapsible |
onClick | func | false | () => {} | Callback to be executed when the button is clicked or activated by keyboard. |
triggerAriaDescribedby | string | false | null | aria-describedby on the trigger element. |
import Collapsible from "@paprika/collapsible";
const [isCollapsed, setIsCollapsed] = React.useState(false);
const yourComponent = () => {
return (
<Collapsible
a11yText="collapsible section"
isCollapsed={isCollapsed}
isDisabled={false}
label="Click me to show/hide the content"
iconAlign="left"
onClick={() => setIsCollapsed(!isCollapsed)}
>
<p>
<strong>Content</strong> – children of the <Collapsible> is hidden while the collapsible is collapsed, and
visible with it is expanded.
</p>
</Collapsible>
);
};
export default yourComponent;
FAQs
Collapsible component, allows the user to expand and collapse some enclosed content.
We found that @paprika/collapsible demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.