
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@trendmicro/react-buttons
Advanced tools
React Buttons component.
Demo: https://trendmicro-frontend.github.io/react-buttons
npm install --save react @trendmicro/react-bttons
@trendmicro/react-buttons
and its styles in your application as follows:import { Button, ButtonGroup, ButtonToolbar, ButtonDropdown } from '@trendmicro/react-buttons';
// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-buttons/dist/react-buttons.css';
<Button btnStyle="default">Default</Button>
<Button btnStyle="primary">Primary</Button>
<Button btnStyle="emphasis">Emphasis</Button>
<Button btnStyle="danger">Danger (Alias of Emphasis)</Button>
<Button btnStyle="flat">Flat</Button>
<Button btnStyle="border">Border (Alias of Flat)</Button>
<Button btnStyle="link">Link</Button>
<Button btnSize="lg">Large</Button>
<Button btnSize="large">Large</Button>
<Button btnSize="md">Medium</Button>
<Button btnSize="medium">Medium</Button>
<Button btnSize="sm">Small</Button>
<Button btnSize="small">Small</Button>
<Button btnSize="xs">Extra Small</Button>
<Button btnSize="extra-small">Extra Small</Button>
<Button>Normal</Button>
<Button hover>Hover</Button>
<Button active>Active</Button>
<Button focus>Focus</Button>
<Button disabled>Disabled</Button>
<Button block>Block Button</Button>
<ButtonGroup>
<Button active>Left</Button>
<Button>Middle</Button>
<Button>Right</Button>
</ButtonGroup>
<ButtonGroup>
<Button iconOnly><i className="fa fa-pencil" /></Button>
<Button iconOnly><i className="fa fa-mail-reply" /></Button>
</ButtonGroup>
<ButtonGroup>
<Button btnStyle="flat" active>Left</Button>
<Button btnStyle="flat">Middle</Button>
<Button btnStyle="flat">Right</Button>
</ButtonGroup>
<ButtonGroup>
<Button btnStyle="flat" iconOnly><i className="fa fa-pie-chart" /></Button>
<Button btnStyle="flat" iconOnly><i className="fa fa-line-chart" /></Button>
<Button btnStyle="flat" iconOnly><i className="fa fa-table" /></Button>
</ButtonGroup>
<ButtonGroup vertical>
<Button>Top</Button>
<Button>Middle</Button>
<Button>Bottom</Button>
</ButtonGroup>
<ButtonToolbar>
<ButtonGroup>
<Button>Button Group 1</Button>
<Button>Button Group 1</Button>
</ButtonGroup>
<ButtonGroup>
<Button>Button Group 2</Button>
<Button>Button Group 2</Button>
</ButtonGroup>
</ButtonToolbar>
<Button>
<i className="fa fa-download" />
Download
</Button>
<Button btnStyle="primary">
<i className="fa fa-plus" />
Add Account
</Button>
<Button disabled>
<i className="fa fa-circle-o-notch fa-spin" />
Uploading
</Button>
<Button btnStyle="primary" disabled>
<i className="fa fa-circle-o-notch fa-spin" />
Uploading
</Button>
<Button btnStyle="flat">
<i className="fa fa-pencil fa-fw" />
Edit
</Button>
<Button btnStyle="flat">
<i className="fa fa-trash-o fa-fw" />
Delete
</Button btnStyle="flat">
<Button>
<i className="fa fa-book fa-fw" />
Library
</Button>
<Button iconOnly>
<i className="fa fa-comment" />
</Button>
<Button btnStyle="primary" iconOnly>
<i className="fa fa-plus" />
</Button>
<Button btnStyle="emphasis" iconOnly>
<i className="fa fa-search" />
</Button>
<Button btnStyle="flat" iconOnly>
<i className="fa fa-cog" />
</Button>
<Button
dropdown
placeholder="Select..."
options={[
{ label: 'Action', value: 'v1' },
{ label: 'Another action', value: 'v2' },
{ label: 'Something else here', value: 'v3' }
]}
onChange={(selectedOption) => {
if (selectedOption) {
console.log('label =' + selectedOption.label + ', value = ' + selectedOption.value);
}
}}
/>
<Button
dropdown
dropdownStyle="split"
placeholder="Select..."
options={[
{ label: 'Action', value: 'v1' },
{ label: 'Another action', value: 'v2' },
{ label: 'Something else here', value: 'v3' }
]}
/>
<Button
dropdown
placeholder="Select..."
options={[
{ label: 'Action', value: 'v1' },
{ label: 'Another action', value: 'v2' },
{ label: 'Something else here', value: 'v3' }
]}
value="v1"
fixedWidth={true}
/>
<Button
dropdown
dropdownStyle="text"
options={[
{ label: 'Action', value: 'v1' },
{ label: 'Another action', value: 'v2' },
{ label: 'Something else here', value: 'v3' }
]}
>
All Devices
</Button>
<Button
dropdown
dropdownStyle="text"
options={[
{ label: 'Action', value: 'v1' },
{ label: 'Another action', value: 'v2' },
{ label: 'Something else here', value: 'v3' }
]}
customValueRenderer={(option) => {
return (
<div>
<i className="fa fa-database" />
<span>{option.label}</span>
</div>
);
}}
>
All Devices
</Button>
<Button btnSize="large" dropdown>Large</Button>
<Button btnSize="medium" dropdown>Default</Button>
<Button btnSize="small" dropdown>Small</Button>
<Button btnSize="extra-small" dropdown>Extra Small</Button>
MIT
FAQs
Trend Micro Components: React Buttons
The npm package @trendmicro/react-buttons receives a total of 2,964 weekly downloads. As such, @trendmicro/react-buttons popularity was classified as popular.
We found that @trendmicro/react-buttons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.