Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Make generic control of core actually generic #5586

Answered by coryrylan
dorthrithil asked this question in Ideas
Discussion options

You must be logged in to vote

This was recently fixed, and not yet published to the docs. You can add any generic content by adding the cds-control attirbute to the element replacing the input.

<cds-control>
  <label>label</label>
  <p  cds-control cds-text="body" cds-layout="m-t:sm">
    Use the <code cds-text="code">cds-control</code> attribute to place generic content into a control layout.
  </p>
  <cds-control-message>control message</cds-control-message>
</cds-control>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by coryrylan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants