
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
softable-pixel
Advanced tools
Reusable React component library providing date and data utilities.
yarn add softable-pixel
# or
npm install softable-pixel
DataTable is a table component built on top of @tanstack/react-table.
It supports column resizing, drag-and-drop ordering and selection
import {
DataTable,
type CustomColumnDef,
type CustomData,
} from 'softable-pixel';
interface Person {
id: number;
name: string;
age: number;
}
const columns: CustomColumnDef<CustomData<Person>>[] = [
{
columnId: 'name',
accessorFn: row => row.data.name,
header: 'Name',
},
{
columnId: 'age',
accessorFn: row => row.data.age,
header: 'Age',
},
];
const rows: CustomData<Person>[] = [
{ data: { id: 1, name: 'Alice', age: 30 } },
{ data: { id: 2, name: 'Bob', age: 28 } },
];
<DataTable<Person>
data={rows}
columns={columns}
enableColumnOrdering
enableResizeColumns
hasHorizontalDivider
/>
Key props:
data: array of CustomData rows.columns: array of CustomColumnDef definitions.enableColumnOrdering: allows drag-and-drop column reordering.enableResizeColumns: enables column resizing.hasHorizontalDivider / hasVerticalDivider: toggles cell borders.Calendar displays a popover calendar for selecting date ranges.
It exposes open and close methods via ref.
import {
Calendar,
CalendarTypes,
DEFAULT_PRESETS,
} from 'softable-pixel';
import { useRef, useState } from 'react';
const ref = useRef<CalendarTypes.CalendarMethods>(null);
const [range, setRange] = useState<CalendarTypes.DateRangeValue>({
start: '',
end: '',
});
<Calendar
ref={ref}
locale="en-US"
value={range}
presets={DEFAULT_PRESETS}
onChange={(next) => setRange(next)}
>
<button onClick={() => ref.current?.open()}>Open calendar</button>
</Calendar>
Important props:
locale: locale string used for month and day names.value: controlled range object { start, end }.variant: visual variant ("single" or "group").visibleMonths: number of months displayed side by side.presets: predefined date shortcuts (use DEFAULT_PRESETS or provide your own).onChange: callback fired when the range changes.After cloning the repository, run:
yarn build
This compiles the components to the dist directory
FAQs
Reusable React component library providing date and data utilities.
We found that softable-pixel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.