Icons
Available icons for Unkey's apps.
Prop | Type | Default |
---|---|---|
className | string | undefined | - |
Customize
As a rule of thumb, you should only customize the color, but there's always an edge case.
Icons
These are all the icons available to import.
Adding new icons
Importing icons is a manual process.
Open the icon in the Nucleo UI Essential
collection and select the icon(s)
you want to export.
Export it as jsx
, and remove the title.
Update the code to match our guidelines.
Rename the file to .tsx
Add the following license block at the start of the file:
Replace the function syntax with: export const INSERT_ICON_NAME: React.FC<IconProps> = (props) => {
Remove the default export
Update all color references to currentColor
Add {...props}
to the root svg
element.
Export it in the /internal/icons/src/index.ts
barrel file.
Import and add it in in this file under #icons in alphabetic order.