@ship-ui/core
v0.16.17
Published
A modern signal based and zoneless compatable UI library for Angular visit our website [shipui.com](https://shipui.com) for more info.
Readme
⛵ Ship UI
A modern signal based and zoneless compatable UI library for Angular visit our website shipui.com for more info.
Docs can be found at docs.shipui.com
Base setup
To start using ShipUI make sure you're using angular 19 or newer.
Install
npm i -S @ship-ui/coreAdd styles inside your src/styles.scss
@use 'ship-ui/core/styles';Inside your angular.json file
you need to add the ship assets to your assets array this is to add the ship default font
"assets": [
"src/assets",
{
"glob": "**/*",
"input": "./node_modules/ship-ui/core/assets",
"output": "./ship-ui-assets/"
}
]Setup Icons
Ship comes with a custom CLI for subsetting and auto generating an icon font currently we support Phospher icons
<!-- Add to the head of your index.html -->
<link rel="stylesheet" href="/ship.css" />Add following scripts to your package.json scripts
One are for generating the icon font once, the other has a watch feature.
"scripts": {
..
"gen:font": "ship-fg --src='./src' --out='./src/assets' --rootPath='./'",
"watch:font": "ship-fg --src='./src' --out='./src/assets' --rootPath='./' --watch",
..
}Now update your current start and build scripts
You now wanna add when to build the font and when to watch so it works well together with your start and build, remember to add the npm run gen:font to all your build scripts
"scripts": {
..
"start": "npm run watch:font & ng serve",
"build": "npm run gen:font & ng build",
..
}Follow our progress
We have a todos file where we try keep track of features/bugs/blockers currently in pipeline etc
Notes
- There was raised thoughts on separating out the icon utility the decision are for now not to since this package are depended on those icons for now, we can open up a new debate about it if some comes with a solid argument for it
- For safari
<18the selects does not support using options so you must use<sh-option>instead of<option>(this is fixed in the next select version currently suffixed with-new) (We circumvent this by using a templates instead of options) - Known issues for selects when having two selects editing the same value and it is a multi select and searchable they clear out when opened also when selecting a new item they clear the rest of the list - not a very likely scenario but it is something to keep in mind (Your UI probably should not allow this scenario write an issue if you think it should be possible with a good explanation and example)
Contributors
Creators
Sponsors
License
MIT
