mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 11:09:13 +00:00
update template
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export default function (plop) {
|
||||
plop.setHelper('tagWithoutPrefix', tag => tag.replace(/^sl-/, ''));
|
||||
plop.setHelper('tagToHumanReadableName', tag => tag.replace(/^sl-/, '').replace(/-/g, ' '));
|
||||
|
||||
plop.setHelper('tagToTitle', tag => {
|
||||
const withoutPrefix = plop.getHelper('tagWithoutPrefix');
|
||||
|
||||
@@ -15,7 +15,7 @@ import styles from './{{ tagWithoutPrefix tag }}.styles';
|
||||
* @slot - The default slot.
|
||||
* @slot example - An example slot.
|
||||
*
|
||||
* @csspart base - The component's base wrapper.
|
||||
* @csspart {{ tagWithoutPrefix tag }} - The internal wrapper for the {{ tagToHumanReadableName tag }}.
|
||||
*
|
||||
* @cssproperty --example - An example CSS custom property.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user